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

jquery selector - select based on multiple attributes sample code_jquery

WBOY
Release: 2016-05-16 17:19:14
Original
817 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template