The jquery bind (click) parameter is passed to bind an event to each row in the list, jquerybind
Click a row in the list. Details are frequently displayed. When you click an event with jquey bind, if you do not pay attention to passing the parameter, the same content may be displayed for each row you click. This is mostly because the passing of the parameter is not noticed. The simple code is as follows:
for(var i=0;i<2;i++) { $("#b" + i).bind("click", {'bindText':bindText + i}, function(e){ butClick(e); }); }
Test code:
<Html>
In jquery, the advantage of bind binding events is that it can be used to implement multiple events? If bind binding is not required, can the tag only implement one event?
What do you mean?
$ ("# Email"). bind ('keydown keyup keypress copy cut paste propertychang', function (e ){
If (! E. keyCode ){
SetTimeout ("chk1 ()", 20)
}
Chk1 ()
});
How does jquery bind an element to multiple click events?
$ ("# Abc"). bind should be acceptable. If not, try $ ("# abc"). click. In fact, there is no difference between the two.