akosch
akosch

Reputation: 4406

Dojo query: attribute not equal

I want to match nodes that don't have an empty value attribute (value!=""). Am I supposed to use :not(...) for this and if yes, how?

Upvotes: 1

Views: 1464

Answers (1)

Ken Franqueiro
Ken Franqueiro

Reputation: 10559

Yep, seems like you're on the right track there. This seems to work in IE8, FF 3.6, recent Chrome:

dojo.query(':not(input[value=""])')

http://jsfiddle.net/KaMSg/

Upvotes: 3

Related Questions