Example of value is exit or not in a string using jquery. Follow this example code and apply it, hope it will be helpful for you.
<script type="text/javascript"> var val1 = "datainflow"; var val2 = "in"; if(val1.indexOf(val2) != -1){ console.log("Your found value is"+val2); }else{ console.log("No value found"); } </script>
Question and answer is powered by AnsPress.io