To check if one one string contains another string in Javascript you can use the following method.
Sample JS
if(testString.indexOf("substring") > -1){ }
All the Code Snippets and Samples you need
To check if one one string contains another string in Javascript you can use the following method.
if(testString.indexOf("substring") > -1){ }
You must be logged in to post a comment.
RT @CodeSnippetsNET: Check if one one string contains another string in #Javascript http://t.co/chGLERsh04 #js #html #css #php #code #dev #…
RT @CodeSnippetsNET: Check if one one string contains another string in #Javascript http://t.co/chGLERsh04 #js #html #css #php #code #dev #…
RT @CodeSnippetsNET: Check if one one string contains another string in #Javascript http://t.co/chGLERsh04 #js #html #css #php #code #dev #…
RT @CodeSnippetsNET: Check if one one string contains another string in #Javascript http://t.co/chGLERsh04 #js #html #css #php #code #dev #…