1. Selector
(1) wildcard:
tags under the child nodes of the tag with class main
$(".main > a");
(5) Select the label immediately adjacent to
jqueryObj.next("div");//Get the div immediately behind the jqueryObj tag , nextAll gets all
2. Filter
//not
$("#code input:not([id^='code'])");//The id is the code tag and does not contain all input tags whose id starts with code
3. Event
/ /Handle keyboard operations on the text box
jqueryObj.keyup(function(event){
var keyCode = event.which;//Get the key value of the currently pressed keyboard, the Enter key is 13
}
4. Tool function
$('#someField').val($.trim($('#someField').val()));//Eliminate spaces, syntax: $.trim(value)