I've seen some data accessed in a javascript function like this:
$(this).data('js');
In the html, the data is assigned like this.
<li data-js="m">
<a href="#">Male</a>
</li>
<li data-js="f">
<a href="#">Female</a>
</li>
I've just not seen this done before. And I don't really know what to call it to search for it. Inline jquery data assignment? Is it good practice? Well supported? What's it called? Thanks!