Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

if (document.getElementById('divId').innerHTML.indexOf("word") != -1) { }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Javascript #check #div #Stack #Overflow
ADD COMMENT
Topic
Name
3+3 =