Introduction:
Here I will explain how to use jQuery to check if string contains specific text or not with example or jQuery to check if string contains particular text or not with example.
Description:
In previous articles I explained jQuery round off numbers with decimal values, insert & fetch data from access database in asp.net, sort gridview columns with dropdownlist selection in asp.net, JavaScript get whole number division using Math.ceil function, jQuery fixed header on window scroll with example and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to check if string contains text or not with example.
In previous articles I explained jQuery round off numbers with decimal values, insert & fetch data from access database in asp.net, sort gridview columns with dropdownlist selection in asp.net, JavaScript get whole number division using Math.ceil function, jQuery fixed header on window scroll with example and many articles relating to AngularJS, jQuery, JavaScript and asp.net. Now I will explain how to use jQuery to check if string contains text or not with example.
To check whether string contains
particular text or not in jQuery
we need to write the code like as shown below
|
If
you want to check it in complete example you need to write the code like as
shown below
|
Live
Demo
For
live demo enter text in textbox to check whether that exists in string or not
|
If you enjoyed this post, please support the blog below. It's FREE! Get the latest Asp.net, C#.net, VB.NET, jQuery, Plugins & Code Snippets for FREE by subscribing to our Facebook, Twitter, RSS feed, or by email. |
|||
|
|||
0 comments :
Note: Only a member of this blog may post a comment.