Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to provide the Shortcut on submit button in JSP/HTML  RSS feed

 
Ariram Kalimuthu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
Could anyone provide suggestion/guide me to get shortcut option in submit button?

let me explain through the code,

Submit Button:
HTML Tag:
<input type="submit" name="login" value="Login" />

is there any attribute saying the shortcut for the Login button would be any of the character of Login?
<input type="submit" name="login" value="Login" shortcutChar="L" />
Login


 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ariram Kalimuthu wrote:Could anyone provide suggestion/guide me to get shortcut option in submit button?

Shouldn't "Enter'" key worked as default submit action key ?
 
Ariram Kalimuthu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No.

It has to support both.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

yes, you can make this using java scrip... I think Jqery help you in this...

please see the reference from your question

http://www.openjs.com/scripts/events/keyboard_shortcuts/#add_docs

 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ariram Kalimuthu wrote:No.

It has to support both.

If that what you want, then this is will be my approach:

 
Ariram Kalimuthu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes!..

I got it!.

Thanks Nishan Patel and Sagar Rohankar
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ariram,

you are always welcome...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!