December 2013
Intermediate to advanced
384 pages
9h 54m
English
$("input[value=0]"); //selects <input> with value="0" $("p[class*=my")//selects elements "my" in classname $("img[src^='icons\\/']"); //selects <img> elements where src starts with "icons/" $("input[value!='default']"); //selects <input> elements where the value is not "default" $("p[id]"); //selects <p> elements that have id set $("p[id][class$=Menu"); //selects <p> elements with idset and //classname ending with "Menu"
Another way to use jQuery selectors is to select HTML elements by their attribute values. It can be a default attribute or one that you have added to the HTML elements. Attribute values are denoted in the selector syntax by being enclosed in ...
Read now
Unlock full access