115
rated 0 times
[
119]
[
4]
/ answers: 1 / hits: 20634
/ 14 Years ago, fri, july 23, 2010, 12:00:00
I have two submit buttons and one form. How do I check what submit button was selected in my jquery code?
<% using (Html.BeginForm(UserInfo, Home, FormMethod.Post, new { id = formNext })) { %>
....
<input id=submitHome type=submit name=goHome value=Home />
<input id=submitNext type=submit name=getNext value=Next />
<% } %>
$(document).ready(function() {
$('#formNext').submit(function() {
//Code Does not work but looking at something like this...
//$('#submitHome').click(function() {
// navigate to Home;
//});
//$('#submitNext').click(function() {
// return true;
//});
});
});
More From » jquery