Check if an element is defined
Posted on 2009-04-27
I have this code...
var portfolio_item = $$('.portfolio_item');
Following is a bunch of stuff manipulating items within this item, but if the item is not defined on the page, I want it to skip that stuff.
How can I do an if statement that makes sure this item is even on the page first?