jQuery Object access advanced


$("element[id]")

Gets all the elements with the ID attribute

$("element[attribute=kw]")

Gets all the elements with the attribute kw

$("element[attribute!=kw]")

Get all the attributes not equal to kw

$("element[attribute^=kw]")

Gets all the elements with an attribute value that starts with kw

$("element[attribute$=kw]")

Gets all the elements with an attribute value ending in kw

$("element[attribute*=kw]")

Gets all the elements with an attribute value of kw

$("element[selector1][selector2][....]")

The attribute selector, such as $ ("input[id][name][value=kw]"), gets the input element with ID, Name and value kw.




Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook