/ Published in: jQuery
obviously one can access HTML5's data attribute super easy in jQuery
Expand |
Embed | Plain Text
<span data-sku="SKU123456">My Product</span> $("span").data("sku");
You need to login to post a comment.
iroybot on 08/09/12
2 people have marked this snippet as a favorite
obviously one can access HTML5's data attribute super easy in jQuery
<span data-sku="SKU123456">My Product</span> $("span").data("sku");
You need to login to post a comment.