View Single Post
Old 09-11-2010, 01:04 AM   #2684
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
Starson17,
If i wanted an if statement that checked if the parent was <div id='MainContent'>
how would I go about doing it?
would it be
Code:
mydaddy = item.parent
if mydaddy.name = 'MainContent'
  .......
I seen examples of how you and others do a parent match for <a> and <p> and so forth but not for an actual div id... tag

thanks

Last edited by TonytheBookworm; 09-11-2010 at 01:59 AM. Reason: Changed question
TonytheBookworm is offline