eoJ
eoJ

Reputation: 29

How to redirect inside jquery tab using javascript?

I've just got this jquery form working, it's based inside a jquery tab, and on clicking the submit button, it submits to a mySQL database without leaving the page or anything. Now, though, I want it to redirect the user, without making them leave the tab, to a different page inside the same tab once they've submitted their details.

Does anyone know the Javascript code to do this?

Thanks!

Upvotes: 1

Views: 913

Answers (1)

Dutchie432
Dutchie432

Reputation: 29160

If you're trying to load a new page into the DIV where your form was, simply call

$('#idOfDivWithForm').load('newpage.php');

Upvotes: 3

Related Questions