I need to refresh the page using jquery? I am using
location.reload(true);This code reloads the page i need to refresh the page(Once a page refresh user entered content would be there). how to refresh?
Use only location.reload(); - note that this will not disable caching for the reload. But you cannot preserve both form fields and reload without using anything from cache.
It's very similar to F5 vs CTRL+F5: The first one does not disable all caching but preserves form fields. The latter does not load anything from cache and resets form fields.
window.location.reload(true);isn't what you want?