Karl is completely right. But if you REALLY have a reason to check for its existence you can do this:
if ($('#myId').length) { $('myId').remove(); } else { alert('ooops! there's no myID to remove...'); } -- Bohdan Ganicky On Aug 18, 10:11 pm, "Gewton Jhames" <[EMAIL PROTECTED]> wrote: > There's a way to remove a element by his id, but first check if it exists? > > thanks.