title: How to use jQuery .val() in a salesforce aura lightning component?
body: <p>I'm attempting to to use jQuery <code>.val()</code> function on the following page to pre-fill some info:</p>
  
  <p><a href="https://tophatsupport.force.com/s/contactsupport" rel="nofollow">https://tophatsupport.force.com/s/contactsupport</a></p>
  
  <p>I'm using something along the lines of:</p>
  
  <pre><code>$("input[placeholder='Top Hat Username *']").val("This is a test");
  </code></pre>
  
  <p>This works and fills the field, but when I attempt to submit the form, it flags the field as invalid, almost as if there is nothing filled in there yet.</p>
  
  <p>I'm wondering if anyone here knows how to fill these fields using JS or jQuery and for them to be valid fields upon submission of the form.</p>
  
  <p>I appreciate your help interwebs!</p>