Tags
PHP
Asked 1 years ago
13 Oct 2022
Views 399
steave

steave posted

strpos in javascript

strpos in javascript
i want to check if any string exists in given string in Javascript as like Php ?
hanuman

hanuman
answered Oct 13 '22 18:52

you can use indexOf function of the javascript . it work almost same as strpos in php .

$("input[name=height]").val().indexOf(",");
Post Answer