title: Target input field by name using jQuery
body: <p>I have an input field that looks like this:</p>
  
  <pre><code>&lt;input type="hidden" name="submitted[event_email]" value=""&gt;
  </code></pre>
  
  <p>I was trying to change the value of it and tried this:</p>
  
  <pre><code>jQuery('submitted[event_email]').val('test');
  </code></pre>
  
  <p>I would like to target it by the name, but i am not sure what i did wrong. Would anyone be able to help?</p>