• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Two submit buttons.

 
Sham Grandhe
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
This is Sham, iam working on a project, with similar framework as that of struts.
The problem that iam facing is that, i have two submit button one for moving back in an application flow and the other for moving forward. On hitting enter in the mid way of fill an application by default the back button is striked i want to strike the continue button by default.

Thank you in advance,

regards
Sham
 
s penumudi
Ranch Hand
Posts: 113
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think in a form when one hit "enter", the first submit button gets invoked.

In your scenario, make your back button of type "button" instead of "submit" and onClick through javascript submit your form. By this when user clicks on back button your form will get submitted and if he hits "enter" forward submit button gets invoked.

hope this helps
[ May 23, 2005: Message edited by: s penumudi ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic