From:

http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_test_whether_an_element_exists.3F

if ( $('#theId').length ) {
  // exists
} else {
  // doesn't exist
}

- Richard

On Dec 24, 2007 9:11 AM, debussy007 <[EMAIL PROTECTED]> wrote:

>
>
> Hi,
>
> what is the best way in jquery to check wether an id exists ?
>
> Thank you for any kind help !!
> --
> View this message in context:
> http://www.nabble.com/check-if-an-id-exists-tp14488007s27240p14488007.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com
> .
>
>

Reply via email to