JQUERY if string contains jquery - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution

if string contains jquery


 179

Show ResultJQUERY


2

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body >

<script>

var str = "I am years old!";
if (str.match(/^(?=.*[a-zA-Z])(?=.*[0-9])/)) {
$("body").text("it is ok");
}
else
{
$("body").text("Please type numeric and alphabetic characters");
}

</script>
</body>
</html>


By     Created   
The power of the user (%)
10%

JQUERY


1

$("p:contains(here is your text)").css("font-weight","bold");

or

$("p:contains(here is your text)").text("this is new text"); // original text will be overwritten


By     Created   
The power of the user (%)
76%



The most helpful JQUERY solutions

plugin get client ip address using jqueryplugin get client ip address using jqueryJQUERY

Click to see more ...

  8K     1.7K

plugin detect country jqueryplugin detect country jqueryJQUERY

Click to see more ...

  4K     761

How to get client machine name or computer name with jquery?How to get client machine name or computer name with jquery?JQUERY

Click to see more ...

  8.6K     734

cookie jquerycookie jqueryJQUERY

Click to see more ...

  2.8K     408

show position on google map jqueryshow position on google map jqueryJQUERY

Click to see more ...

  2K     387

how to create a jquery plugin for converting date to days ago, month ago and year ago ?how to create a jquery plugin for converting date to days ago, month ago and year ago ?JQUERY

Click to see more ...

  1.7K     341

How to detect the version of IE browser using jquery ?How to detect the version of IE browser using jquery ?JQUERY

Click to see more ...

  1.6K     331

How to get top, right, left, bottom position of element div using jquery ?How to get top, right, left, bottom position of element div using jquery ?JQUERY

Click to see more ...

  1.6K     276

how to get ip address using jquery ?how to get ip address using jquery ?JQUERY

Click to see more ...

  1.6K     271

plugin convert thousands to K jqueryplugin convert thousands to K jqueryJQUERY

Click to see more ...

  1.4K     268