if string has any character js code example
Example: js check if string contains character
if (your_string.indexOf('hello') > -1)
{
alert("hello found inside your_string");
}
if (your_string.indexOf('hello') > -1)
{
alert("hello found inside your_string");
}