Introduction:
Here I will explain what is string indexof method in JavaScript or jQuery and uses of indexof method in JavaScript or jQuery with example. Indexof method in jQuery or JavaScript is used to check whether particular word existing in string or not and we can get position of first occurrence of word in string. This indexof method will return -1 incase if the word not exists in string in JavaScript or jQuery.
Description:
In previous articles I explained jQuery check if checkbox is checked or not, jQuery change opacity of image on mouseover, jQuery change image on mouseover, jQuery dropdown with images, jQuery show alert message while leaving from website, jQuery Countdown timer script example and many articles relating to jQuery and asp.net. Now I will use of string indexof method in JavaScript or jQuery.
In previous articles I explained jQuery check if checkbox is checked or not, jQuery change opacity of image on mouseover, jQuery change image on mouseover, jQuery dropdown with images, jQuery show alert message while leaving from website, jQuery Countdown timer script example and many articles relating to jQuery and asp.net. Now I will use of string indexof method in JavaScript or jQuery.