tags:

views:

27

answers:

2

I know that [my_attr='my_value'] refers to all elements which have attribute my_attr with value my_value.

Is that possible to refer to all elements which have my_attr attribute (no matter what the value is) ?

+1  A: 
element[attr]

That should do it.

Delan Azabani
Thanks a lot !!
Misha Moroshko
+1  A: 

Use [my_attr] alone:

[att] Represents an element with the att attribute, whatever the value of the attribute.

Pekka
Thanks a lot !!
Misha Moroshko