Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Check if an element exists in the DOM
- From: simone at tomato.it (Simone Fumagalli)
- Subject: [Javascript] Check if an element exists in the DOM
- Date: Wed Oct 18 08:03:46 2006
David Dorward wrote:
> On Wed, Oct 18, 2006 at 02:49:59PM +0200, Simone Fumagalli wrote:
> if (document.getElementById('XYZ')){ ... }
Yes, this works.
But I would like to use the prototype's syntax $('objID')
Is this possible ?
Simone
- Follow-Ups:
- [Javascript] Check if an element exists in the DOM
- From: David Dorward
- [Javascript] Check if an element exists in the DOM
- References:
- [Javascript] Check if an element exists in the DOM
- From: Simone Fumagalli
- [Javascript] Check if an element exists in the DOM
- From: David Dorward
- [Javascript] Check if an element exists in the DOM
- Prev by Date: [Javascript] Check if an element exists in the DOM
- Next by Date: [Javascript] Check if an element exists in the DOM
- Previous by thread: [Javascript] Check if an element exists in the DOM
- Next by thread: [Javascript] Check if an element exists in the DOM
- Index(es):