title: How to set data attributes in HTML elements
body: <p>I have a div with an attribute <code>data-myval = "10"</code>. I want to update its value; wouldn't it change if I use <code>div.data('myval',20)</code>? Do I need to use <code>div.attr('data-myval','20')</code> only?</p>
  
  <p>Am I getting confused between HTML5 and jQuery? Please advise. Thanks!</p>
  
  <p>EDIT: Updated <code>div.data('myval')=20</code> to <code>div.data('myval',20)</code>, but still the HTML is not updating.</p>