user4441 user4441 - 1 year ago 37
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 ?


use this method to redirect

window.location = "";

or use this in your function where you want to redirect


give your own url