Reload a div with jquery, but not with .load
- by zomboble
I need to reload a div on a page on click. So far I have this:
<div id="next"><a id="nextC" href="#">NEXT TESTIMONIAL</a></div><!-- END #next -->
And the js
$('#nextC').click(function(){
$('#atestimonial').load('/ #atestimonial');
evt.preventDefault();
});
I am using wordpress and I have a method sorted for pulling data into the div atestimonial. All I need to do is refresh it on click, doesnt matter about loading a page in.
Can this be done?