title: How to set data-id attribute
body: <p>I am trying to set the data-id and/or value of a span from my js file after a click event. </p>
  
  <pre><code>&lt;span id="test"&gt;&lt;/span&gt;
  </code></pre>
  
  <p>my sudo code js file</p>
  
  <pre><code>nextLink: function(event) {
      $('#test').val = 3;
      $('#test').data('id') = 'Next';
  },
  </code></pre>