MarcelWeidum MarcelWeidum - 1 year ago 79
HTML Question

How to use multiple "Attribute Equals" selector in jquery?

If you want to select a jquery element with 1 attribute that equals a value is simple:


But what if you want to select an element with 2 equal attributes?

$(".element[attribute1='true', attribute2='false']").hide();

That won't work.

Answer Source

You can use multiple Attribute Equals Selector [name=”value”] in jquery like bottom code:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download