Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check string ifhas character in jquery

<script>
function myFunction() {
  var str = "Hello world, welcome to the universe.";
  var n = str.includes("world");
  document.getElementById("demo").innerHTML = n;
}
</script>
 
PREVIOUS NEXT
Tagged: #check #string #ifhas #character #jquery
ADD COMMENT
Topic
Name
9+8 =