This sounds more like a jQuery question then a Rails one, but let's see if I can help anyway. So, you click a link, something happens, then the div hides. You click the link again, something happens, and the div shows up?
<div id="some_div_toggle">With stuff in it</div> <a href="#" id="some_link_to_click">To toggle div</a> $(function() { $('#some_link_to_click').click(function() { $.ajax({ type: 'get', dataType: 'json', success: function(data) { //do stuff with data if($('#some_div_toggle').is(':hidden')) { //show the div } else { //hide the div } } }); }); }); -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.