title: Change html data attribute value
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready( function () {
  
    $("#bla").on( "click", function () {
    
          alert( $(this).data('bla') );
         $(this).attr('data-bla', "2");  
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="bla" data-bla="1"&gt;
    button
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>So, I need change <code>data-bla</code> value from "1" to "2", but as you can see, value not updated and every click on button, alerts default value "1".</p>
  
  <p>What did I do wrong?</p>