title: javascript jQuery - Given a comma delimited list, how to determine if a value exists
body: <p>given a list like:</p>
  
  <pre><code>1,3,412,51213,djdd@asdasd.net, blahblah, 123123123123
  </code></pre>
  
  <p>which lives inside of a input type"text" as a value:</p>
  
  <pre><code>&lt;input type="text" value="1,3,412,51213,djdd@asdasd.net, blahblah, 123123123123, wow@wow.com" /&gt;
  </code></pre>
  
  <p>How can I determine if a value exists, like 3, or blahblah or wow@wow.com?</p>
  
  <p>I tried spliting with inputval.split(',') but that only gives me arrays. Is search possible?</p>