fantomel Posted October 12, 2010 Share Posted October 12, 2010 hell o got this code for a profile page add / peding / remove friend options. [code $('#add_friend').live('click', function() { $.get("{/literal}{$ISD_URL}members/managesfriends/action/add/id/{$user_details.user_id}{literal}", function(data) { if (data == "ok") { $('#add_friend').parent('td').html('{/literal}<a id="remove_friend">{$lang.pending}</a>{literal}'); } }); }); it works fine the only problem is that if i click add friend or remove friend etc.. it updates that portion of the div after i refresh the page can someone help me update it after i click it ? Link to comment https://forums.phpfreaks.com/topic/215724-reload-div-page/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.