Reputation: 14731
How can I reload a div when a reset button is clicked?
Only the div content in tab should be reloaded.
I have tried as in this demo however I am getting error
{"error": "Please use POST request"}
or sometimes is not displayed properly
How can I achieve reload div content without reloading whole page?
Upvotes: 0
Views: 610
Reputation: 91
If the content comes up from server side processing, then something like this should work $('#targetDiv').load('http://yourserver.com/test.html');
Check out this post as well http://api.jquery.com/load/
If the content is locally computed, then set its innerHTML property?
Upvotes: 2