Personally I do it with `$('#id').size !== 0` but length is goood to i think :)
On Dec 24, 2007 5:55 PM, Cloudream <[EMAIL PROTECTED]> wrote: > > $('#id').length>0 ? > > On Dec 24, 10:11pm, 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... > > Sent from the jQuery General Discussion mailing list archive at > Nabble.com. >