Home  >  Article  >  Web Front-end  >  jquery selector - select based on multiple attributes sample code_jquery

jquery selector - select based on multiple attributes sample code_jquery

WBOY
WBOYOriginal
2016-05-16 17:19:14770browse

Select E[attr=val][attr=val] based on multiple attributes

$("div[title='ttt'][class='aaaa']").click().... ............
All elements under all div elements whose attribute title value is equal to ttt and whose attribute class is equal to aaaa

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn