search for: parentblurb

Displaying 1 result from an estimated 1 matches for "parentblurb".

2006 Jun 13
1
Element.remove parent div
...However I would like to just create a function since I''ll be removing multiple DIVs and updating the sortable order. I just can''t get some version of Element.remove to target the parent DIV. I''ve tried several versions of this but no luck. function removeParent() { var parentBlurb = document.getElementById().parentNode; Element.remove(parentBlurb); updateOrder(); } then... <div class="blurb" id="drag_1"> <a onclick="removeParent();" class="remove"></a> </div> I just can''t get this to work out. Any su...