custom-data-attribute
jQuery toggle text defined only in html
This has been answered some times but mine is a different approach. I want to toggle (via jQuery) a text on click. But I want to have this text defined in the html (because it is multilanguage and it[详细]
2023-03-04 17:44 分类:问答Retrieve all data-* attributes from an element [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Get list of data-* attributes using javascript / jQuery[详细]
2023-03-03 04:23 分类:问答Placeholder element for non-affiliated HTML5 data attributes?
I have a small set of structured data items that I would like embedded in an HTML document. The data is used by some JavaScript for interacting with the page, but is otherwise hidden.[详细]
2023-03-02 08:26 分类:问答Is using .data() to retrieve the value of data-* attributes a good idea?
In my project I am currently using some custom data-* attributes in my HTML to convey some extra data that will be used by jQuery. I found the .data() method and noticed that if I have a data-* attrib[详细]
2023-03-02 01:25 分类:问答Do HTML5 custom data attributes “work” in IE 6?
Custom data attributes: http://dev.w3.org/html5/spec/Overview.html#embedding-custom-non-visible-data When I say “work”, I mean, if I’ve got HTML like this:[详细]
2023-02-26 01:13 分类:问答Hidden inputs vs HTML5 data attributes
Something that\'s been bugging me recently is the use of HTML5 data attributes and when is the appropriate to use them.[详细]
2023-02-22 14:08 分类:问答How can I get the data-id attribute?
I\'m using the 开发者_如何学JAVAjQuery Quicksand plugin. I need to get the data-id of the clicked item and pass it to a webservice.[详细]
2023-02-17 09:10 分类:问答Select elements by attribute in CSS
Is it开发者_高级运维 possible to select elements in CSS by their HTML5 data attributes (for example, data-role)?If you mean using an attribute selector, sure, why not:[详细]
2023-02-16 23:18 分类:问答Binding data to DOM node rendered through jQuery templates
I’ve got a set of JSON data that I’m rendering into a set of table rows using jQuery’s new templating plugin. One of the pieces of data is a filename that I’m rendering to the table row as a data[详细]
2023-01-25 17:27 分类:问答jQuery 1.4.4: How to find an element based on its data-attribute value?
I imagine this should be a pretty trivial task but using Firefox for Mac, 3.6.12 the following does not work:[详细]
2023-01-25 04:24 分类:问答