• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

event.keyCode for decimal or Period not being validated

 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Below is the if Condition I have used



But not sure for what reason decimal point and period is not being typed with i do keydown.
 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Bear,

I wrote the above mentioned code snippet in the below jquery keydown function and added the keycode

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using jQuery, you should be using event.which to check keys.
 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:If you are using jQuery, you should be using event.which to check keys.


Dear Bear,

Its working. I was going to the wrong JSP page.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic