how to delete an element from the DOM?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to delete an element from the DOM?

Alex Schenkman
Hi list,

If the element has an id, I can do:
'#elementID' asJQuery remove.

But the element I want to delete does not have an id. It is a table row.
I do have the TagBrush (<tr>) used to paint it.

How do I get the jQuery element for it? So I can delete it?
Or how do I delete an element having the TagBrush?

Thanks in advance!
Reply | Threaded
Open this post in threaded view
|

Re: how to delete an element from the DOM?

Amber Milan Eskridge
youtTagBrush asJQuery remove.

:)

On Thu, May 10, 2012 at 9:07 PM, Alex Schenkman <[hidden email]> wrote:
Hi list,

If the element has an id, I can do:
'#elementID' asJQuery remove.

But the element I want to delete does not have an id. It is a table row.
I do have the TagBrush (<tr>) used to paint it.

How do I get the jQuery element for it? So I can delete it?
Or how do I delete an element having the TagBrush?

Thanks in advance!