Answers for "how to find the element has same value for particular attribute in jquery"

3

find element with data attribute jquery

$("ul").find(`[data-slide='${current}']`)
Posted by: Guest on October-20-2020
1

custom attribute jquery selector

$("ul[data-group='Companies'] li[data-company='Microsoft']") //Get all elements with data-company="Microsoft" below "Companies"

$("ul[data-group='Companies'] li:not([data-company='Microsoft'])") //get all elements with data-company!="Microsoft" below "Companies"
Posted by: Guest on January-05-2021

Code answers related to "how to find the element has same value for particular attribute in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language