Topic: [RJS] test if an element exists
i need to replace the html of my element. only i dont know if it exists. sometimes it does, sometimes it doesnt. i have this in my RJS file.
page.replace_html 'my_id', 'my new markup'
even though there are no elements with the id of 'my_id' the line still fires.