title: how to update an input variable in jquery
body: <p>I'm trying to update an input value based upon a user clicking a button. I have the following:</p>
  
  <p><strong>html</strong></p>
  
  <pre><code>&lt;input id="my-data-1" value="here is a value" /&gt;
  &lt;button data-which="my-data-1" class="update-form"&gt;update&lt;/button&gt;
  </code></pre>
  
  <p><strong>jquery</strong></p>
  
  <pre><code>$(document).ready(function(){
    $('body').on('click','.update-form', function(){
      var me=$(this).attr('data-which');
     // this doesn't work, how would I update it?
      $("'#" + me + "'").val('something for you');  
    });
  });
  </code></pre>
  
  <p>but it isn't working with error:</p>
  
  <blockquote>
    <p>Uncaught Error: Syntax error, unrecognized expression: '.update-form'</p>
  </blockquote>
  
  <p>How would I make this work?</p>