| Welcome to WebmasterWorld Guest from 220.127.116.11 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Subscribe and Support WebmasterWorld|
|can I delete the parent after the child.|
| 7:40 pm on Dec 2, 2011 (gmt 0)|
This deletes the child. "event.target.parentNode.removeChild(event.target);" . Event target is an image that is wrapped within a "p" element. Perhaps learn the parentNodes id before the delete?
| 9:28 pm on Dec 2, 2011 (gmt 0)|
If you're deleting the parent you don't have to delete the child first.
You could also probably use "this" instead of "event.target".
| 12:59 pm on Dec 3, 2011 (gmt 0)|
Thanks. That worked.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved