user4441 user4441 - 2 years ago 61
HTML Question

after insert data in database not able to redirect to html page?

$("#rec").click( function() {
$.post($("#ne").attr("action"), $("#ne :input").serializeArray(), function(info) {

$("#ne").submit(function() {
return false;

is the id of the HTML form and
is the id of a span tag in the same page as the form, i am not able to redirect after inserting record ?

Answer Source

use this method to redirect

window.location = "";

or use this in your function where you want to redirect


give your own url

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download