title: Javascript - Find Comma Exists In String
body: <p>I need to find if a comma exists in a javascript string so I know whether to do str.split(',') on it or not.</p>
  
  <p>Is this the correct way: <code>var myVar = str.search(',');</code> ?</p>
  
  <p>If the value of myVar is greater than 0 (zero) then there is a comma in the string?</p>
  
  <p>I'm just not sure if I've got the parameter right in search()</p>
  
  <p>Thanks!</p>