Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jas123

macrumors member
Original poster
Apr 1, 2008
97
0
if (document.form_name.parentNode == document.getElementById('name_of_id'))


var a = document.form_name.id
 
Could I successfully determine if a particular div tag is the parent node of a particular form element with the first statement?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.