Wildcard characters:
$("input[id^= ' code ']");//id All input tags with the Code start property$("input[id$= ' code ']");//id All input tags with the code end attribute$("input[id*= ' code ']");The//id property contains all the input tags of code$("input[name^= ' code ']");//name All input tags with the Code start property$("input[name$= ' code ']");//name All input tags with the code end attribute$("input[name*= ' code ']");The//name property contains all the input tags of code$("input[name*= ' code ']"). each (Fuction () {varsum=0;if($( This). val () = "" ") {sum=parseint(SUM) +parseint($( This). Val ()); } $("#"). Text (sum);})
Select by index
$ ("tbody tr:even//Select all TR labels with an even index of $ ("tbody tr:odd//Select all TR labels with an odd index
Get the input number of the next level node of Jqueryobj
Jqueryobj.children ("input"). length;
Get all tags under the child node of the tag class main
$ (". Main > A");
Select Close Tag
Jqueryobj.next ("div"); //Get the jqueryobj tag immediately after the next div,nextall get all
Filter
$ ("#code input:not ([id^= ' Code '])"); //id All input tags that do not contain an ID at code start in the code tag
Event
Jqueryobj.keyup (function(event) { var keycode = Event.which; Gets the key value of the currently pressed keyboard, the Enter number is}$ (' #someField '). Val ($.trim ($ (' #someField '). Val ())); //Remove spaces, Syntax: $.trim (value)
JQuery wildcard characters