Is it possible to select elements in jQuery by their HTML5 data attributes (for example, all with data-role=\'footer\')?
with data-role=\'footer\')?
data-role=\'footer\'
jQuery Mobile recomends the $.fn.jqmData(), for example : $("div:jqmData(role='footer')")
Source: http://jquerymobile.com/test/docs/api/methods.html