• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
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


 
Ranch Hand
Posts: 2908
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.
 
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: 2908
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...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!