load a page on submit click
Hi, everyone
How can i load a page after submit button is click.(I am using form wizard and got two submit buttons. So, I want to load a page after pressing a submit button called "Submit".)
What I achieved so for is --> able to get which submit button is clicked by following code.
var target = null;
$('#myform :input').live('mouseup keyup',function(){
target = $(this).val();
console.log(target);
if(target=='Submit'){
}
});
but being a submit button not a "button' the page is not loading using the following code..
('#divname').load('somepagename.html');
So, how can I achieve "After submitting a submit button, load a page into a div" ?