J Jas123 macrumors member Original poster Apr 1, 2008 97 0 Sep 11, 2010 #1 if (document.form_name.parentNode == document.getElementById('name_of_id')) var a = document.form_name.id
if (document.form_name.parentNode == document.getElementById('name_of_id')) var a = document.form_name.id
J Jas123 macrumors member Original poster Apr 1, 2008 97 0 Sep 11, 2010 #3 Could I successfully determine if a particular div tag is the parent node of a particular form element with the first statement?
Could I successfully determine if a particular div tag is the parent node of a particular form element with the first statement?
angelwatt Moderator emeritus Aug 16, 2005 7,852 9 USA Sep 11, 2010 #4 Jas123 said: Could I successfully determine if a particular div tag is the parent node of a particular form element with the first statement? Click to expand... Both halves of the if statement return a node element, so it should work.
Jas123 said: Could I successfully determine if a particular div tag is the parent node of a particular form element with the first statement? Click to expand... Both halves of the if statement return a node element, so it should work.