title: How do I check if an input field value contains a character?
body: <pre><code> var email = document.querySelector('#issueContactEmail');
  
  
   if (email.value.includes('@')) {
      console.log('has @');
      return valid;
  }
  </code></pre>
  
  <p>I have a form with an input with the id of issueContactEmail</p>
  
  <p>I would like to check if there is an @ symbol in the input value before the user can go forward.
  My code here does not seem to work.</p>
  
  <p>How else can I check this?
  If you could briefly explain why this doesn't work that would be great too! thank you in advance</p>