Hi,
I'm new to Javascript and have requirement where I have to check whether particular sub string exist in a string or not.
Thanks in advance.
How to search for a substring in a string in Javascript?
238028-Feb-2011
Updated on 28-Feb-2011
Home / DeveloperSection / Forums / How to search for a substring in a string in Javascript?
Anonymous User
28-Feb-2011You can search sub string in a string using search() method of Javascript
Here is the example,
Hop this will solve your problem.