: This article describes binding click events after jq. For more information about PHP tutorials, see. // Bind events after live (obtain generated objects after dynamic generation)
$ ("# Table1 tr [name = 'name111']"). live ("click", function (){
// If the value of this tr is null, add the tr to the background and change the value of the hidden field to the ID value of tr.
If ($ (this). next (). val () = ''){
Certificate (this).css ("background", "#009900 ");
Var a = $ (this). attr ('id ');
$ (This). next (). attr ("value", );
// Otherwise, change the background of the tr to white and change the value of the hidden domain to null.
} Else {
Certificate (this).css ("background ",'');
$ (This). next (). attr ("value ",'');
}
});
The above introduces the binding of click events after jq, including content, and hope to be helpful to friends who are interested in PHP tutorials.