$('#myid').remove();

If an element with id="myid" doesn't exist it isn't selected and the
"remove()" doesn't do anything. One of the beauties of jQuery.

Karl Rudd

On Tue, Aug 19, 2008 at 6:11 AM, Gewton Jhames <[EMAIL PROTECTED]> wrote:
> There's a way to remove a element by his id, but first check if it exists?
>
> thanks.
>

Reply via email to