Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
149
rated 0 times [  152] [ 3]  / answers: 1 / hits: 16477  / 14 Years ago, tue, february 1, 2011, 12:00:00

How do I check using javascript if the page I'm on contains a particular div... e.g turtles


More From » html

 Answers
224
if(document.getElementById(divid)!=null){
alert('Div exists')
}

[#93956] Sunday, January 30, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mckenna

Total Points: 445
Total Questions: 109
Total Answers: 109

Location: Virgin Islands (U.S.)
Member since Sun, May 16, 2021
3 Years ago
;