Answers for "Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'"

0

Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'

// check if divId contains the word 'word' in innertext 

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

Code answers related to "Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'"

Code answers related to "Javascript"

Browse Popular Code Answers by Language