I need to Refresh a Div in Page by Jquery
<? if($POST['id']) :?>
<script>
Refresh script
</scriptt>
<?php ednif;?>
<div class="Refresh-Div">
<span> Some Dynamic Content </span>
</div>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m still not entirely sure what you are looking for, but based on your comments on the question, you want something like this:
That is the simplest form the the jQuery
loadfunction, which simply loads whatever is returned bysomeScript.phpinto the element withclass="Refresh-Div", replacing whatever was there before.You can do more with the
loadfunction if necessary (like pass in data, and a callback function), so for more information I suggest reading theloadsection in the jQuery API.