Return to Snippet

Revision: 31798
at September 13, 2010 20:32 by dmistriotis


Updated Code
if($('id_of_element') != undefined) {
    console.log('Object exists.');
}

Revision: 31797
at September 13, 2010 20:31 by dmistriotis


Initial Code
if($('id_of_element') != undefined) {
    alert('Object exists.');
}

Initial URL
http://www.richardcastera.com/2010/02/24/prototype-js-determine-if-an-object-exists-in-the-page-loaded/

Initial Description

                                

Initial Title
prototype check if element exists

Initial Tags
DOM

Initial Language
JavaScript