Answers for "Javascript - check if div contains a word? - Stack Overflow"

1

Javascript - check if div contains a word? - Stack Overflow

if (document.getElementById('divId').innerHTML.indexOf("word") != -1) { }
Posted by: Guest on November-28-2020

Code answers related to "Javascript - check if div contains a word? - Stack Overflow"

Code answers related to "Javascript"

Browse Popular Code Answers by Language