title: jQuery - How to add HTML 5 data attributes into the DOM
body: <p>I am trying to add a HTML 5 data attribute into the DOM. I have seen on the jQuery site the format for data attributes is:</p>
  
  <pre><code>$('.pane-field-related-pages ul').data("role") === "listview";
  </code></pre>
  
  <p>But this doesnt seem to add anything into the DOM?</p>
  
  <p>How can I add the above data-role into the related ul tag?</p>