1. Selector
(1) wildcard characters:
("input[id^= ' Code ']");//id all input tags ("input[id^= ' Code") starting with code;//id all Input tags ("input[id =′code′]" that start with the code. ;//id property with all input tags ending with code = ' Code '];//id property with all input tags ("input[id*= ' Code") ending with code;//id property contains all input tags for code
("input[name^= ' Code ']");//name all input tags ("input[name^= ' Code") that start with code,//name all input tags that start with code ("Input[name =′code′] "");//name property with all input tags ending with code = ' Code '];//name property to all input tags ending with code ("input[name*= ' Code ')"); The Name property contains all input labels for code
("input[name*= ' Code ']"). each (Fuction () {
var sum=0;
if ($ (this). Val ()!= "") {
Sum=parseint (SUM) +parseint ($ (this). Val ());
}
$ ("#"). Text (sum);
})
(2) Depending on index selection ("input[name*= ' Code ')"). each (Fuction () {var sum=0; if ($ (this). Val ()!= "") {sum=parseint (sum) +parseint ( This). Val ()); } $ ("#"). Text (sum); }) (2) According to index selection ("Tbody tr:even"); Select all TR tags with an even-numbered index
("tbodytr:odd")//Select all TR tags (3) with odd indices to obtain the input number Jqueryobj.children ("input") of the Jqueryobj Next level node. length; (4) Get class for Mai