MENU
Additional Selectors
jQuery shares most of the selectors used in CSS (4.2). Here are some additional jQuery-specific selectors:
$("[href!=' image1.gif ']")all elements with the attribute href not equal to 'image1.gif'
$(" [name!='value'] ) all elements that don't have the name attribute, or that have the name attribute with a different value.
$(" [name=value][name2 ! ='value2'] ...) all elements that match all the attribute filters.$(":header")all <h1>-<h6> elements$(":input") all <input>, <textarea>, <select> and <button> elements.
$(" :button " )all<button>&'button'<input>elements.
$(" :checkbox " ) all 'checkbox' <input> elements.
$(" :file " ) all 'file' <input> elements.
$(" :image " ) all 'image'<input> elements.$(":radio") all 'radio' <input> elements.
$(" :reset " ) all 'reset' <input> elements.
$(" :password " ) all 'password' <input> elements.
$(" :submit " ) all 'submit' <input> elements.$(":text") all 'text' <input> elements.
$( " :parent " ) all elements with at least one child.
$(":animated")all animated elements$(":empty")all elements with no child nodes$("p:hidden")all hidden <p> elements$("table:visible")all visible <table>$("input:not(:empty)")all non-empty <input> $(":selected") all selected input elements$(":has(.c)") all elements containing element(s) with a 'c' class.
$(":contains(' textbook ')") all elements with the text 'textbook' between the opening and closing tags
RESETRUNFULL
$( "div" ).find( "." + $.escapeSelector( ".box" ) );