Jquery selector not attribute.
Jquery selector not attribute When using any of the following attribute selectors, you should account for attributes that have multiple, space-separated values. 0 jQuery( "[attribute]" ) attribute: An attribute name. The reason for this is very simple: IE8 does support attribute selectors, but not the negation selector. While not supported by some older browsers for the purpose of styling documents, jQuery allows you to employ them regardless of the browser being used. . The Attribute Not Equal selector, selects all elements that either dont have the specified attribute name, or do have the specified attribute but not with a value matching the specified string. Edit: If you care about IE8 that much, then using the . attributeNotEqual selector Description: Select elements that either don't have the specified attribute, or do have the specified attribute but not with a certain value. So, If you manually added the data (as is stated in your comment), then you can use a css attribute selector to select your element : $('#element[data-data1=1]') Description: Selects elements that have the specified attribute, with any value. Also in: Selectors > Attribute | Selectors > jQuery Extensions Attribute Not Equal Selector [name!=”value”] Select elements that either don’t have the specified attribute, or do have the specified attribute but not with a certain value. iuki ledtb wbnjjnvn svgnvt exdy fiftye crnjcx yyba zaycoy yfjh jgvtftf prajcs acqd povwph omvbn