title: html "data-" attribute as javascript variable
body: <p>Is it possible to register a html data-attribute as the name of a javascript variable?</p>
  
  <p>What I am talking about is something like this:</p>
  
  <pre><code>&lt;form&gt;
    &lt;input data-varName="test1" /&gt;
    &lt;input data-varName="test2" /&gt;
  &lt;/form&gt;
  
  $('form').find('input').each(function() {
    var $(this).attr('data-varName') = $(this).val();
  });
  </code></pre>