Reload a div with jquery, but not with .load
Posted
by
zomboble
on Stack Overflow
See other posts from Stack Overflow
or by zomboble
Published on 2012-09-13T15:32:54Z
Indexed on
2012/09/13
15:38 UTC
Read the original article
Hit count: 201
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?
© Stack Overflow or respective owner