. with data-rolefooter)? yes you can api.jquery .com/attribute-equals-selector. On select change, get data attribute value. jQuery Get Selected Option From Dropdown.Has Attribute Selector [name] Description: Selects elements that have the specified attribute, with any value. version added: jQuery in Action Bear Just remove the space between the selector. (".wishlist-icon[data -wish-nameproduct][data-wish-url/product]").hide() Js Fiddle Demo. In HTML5, it has data- attribute which is used to store custom data with an HTML element.
This attributes used to keep more information on HTML elements.We are going see an example to read HTML5 data- attribute via jQuery. I would like to know what selectors are available for these data attributes that come with HTML5. Taking this piece of HTML as an examplejQuery UI has a :data() selector which can also be used. It has been around since Version 1.7.0 it seems. Is it possible to select elements in jQuery by their HTML5dataattributes (for example, all