Posted By

dmistriotis on 09/13/10


Tagged

DOM prototype existence


Versions (?)

prototype check if element exists


 / Published in: JavaScript
 

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

  1. if($('id_of_element') != undefined) {
  2. console.log('Object exists.');
  3. }

Report this snippet  

You need to login to post a comment.