How to select a binding tag with the specified class and rel?

I have such an anchor tag, and I need to choose it!

<a href="#" class="foo bar" rel="123">...</a> 

Is it possible when jQuery will write a selector that selects a binding with a class like foo bar and rel like 123 ?

+7
source share
1 answer

You can use something like:

 $('a.foo.bar[rel="123"]') 
+15
source

All Articles