andyd34 Posted September 24, 2009 Share Posted September 24, 2009 I am trying to refresh the contents of a division without refreshing the entire page when a button is clicked. I have tried $("#close_add_event").click(function(html){ $("#add_event_div").fadeOut(600); $("#contents_inner").html(html); }); I have also tried $("#close_add_event").click(function(html){ $("#add_event_div").fadeOut(600); $("#contents_inner").replaceWith($('#contents_inner', $(html))); }); But all this does is clear the contents of the div. Can anyone show me where I am going wrong. Most of the tutorials I have found are refreshing a div with external contents. Link to comment https://forums.phpfreaks.com/topic/175435-refresh-div-contents/ Share on other sites More sharing options...
andyd34 Posted September 25, 2009 Author Share Posted September 25, 2009 does anyone actually use this section Link to comment https://forums.phpfreaks.com/topic/175435-refresh-div-contents/#findComment-925097 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.