search text within string using js code example
Example: search inside a string javascript
var string = "Hello world!";
var n = string.search("w"); //now n equals 6
var string = "Hello world!";
var n = string.search("w"); //now n equals 6