In my rjs template I’m using the following line.
page.visual_effect :slideUp, ‘comment_error_details’, :duration => 0.5
It works fine if I have created the div with the
but if I haven’t created the error yet then my whole rjs template fails.
How can I check to see if an element has been created? I could then put
the above line in an if statement.