besly98 Posted February 21, 2011 Share Posted February 21, 2011 Hi All, can anybody tell me the code to refresh one div (only once) once the ajax code has executed. currently i can pas sin another value into a div with the code below. document.getElementById("addplayer").innerHTML = ajaxRequest.responseText; but i also wanted to refresh the content in another Div so it updates. hope this makes sense? Thanks Quote Link to comment Share on other sites More sharing options...
codefossa Posted February 24, 2011 Share Posted February 24, 2011 Set whatever you're wanting to put into the div on another PHP page. Then just use $("#divId").load("/path/to/page.php"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.