I may be thinking of this all wrong but I've been trying to render a partial in a jQuery click function like so...
closeShow.click(function(){
parentDiv.empty();
parentDiv.html('<%= escape_javascript(render "sibling_div_partial") %>');
});
I've also tried using .append for the partial but the when I check the view in the browser, it comes up with just the text (i.e <%= escape_javascript(render "sibling_div_partial") %>) instead of the partial.
A little more infomration as to what I'm trying to accomplish.... I want to remove a div when the close button is clicked and then rebuild that div as a partial when a close button is clicked.
Am I conceptualizing this all wrong?