Answers for "jquery test a string for a partial match at position 0 site:stackoverflow.com"

3

if str contains jquery

if (str.indexOf("Yes") >= 0)
  
  //case insensitive version
  if (str.toLowerCase().indexOf("yes") >= 0)
Posted by: Guest on July-01-2020

Code answers related to "jquery test a string for a partial match at position 0 site:stackoverflow.com"

Code answers related to "Javascript"

Browse Popular Code Answers by Language