Hi all,
Currently I am using Element.remove like so:

<div class="blurb" id="drag_1">
<a class="remove"></a>
</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 class="remove"></a>
</div>

I just can't get this to work out. Any suggestions would be very helpful. Thanks!
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to