I\'m storing some custom data in HTML5 data attribute for Jquery processing. will the custom data attribute available in Older browsers?
The HTML5 datalist
property is not available in older browsers (it can be polyfilled easily enough though). You can always use the standard getAttribute
method instead of course, and data-xxx
attributes on HTML elements are accepted by all browsers (as long as you're in HTML mode and not xHTML where they're invalid)
But your question seems to be more specifically about jQuery than HTML5, and for that, the answer is Yes -- the jQuery .data()
method is available in all browsers supported by jQuery.