• Post Reply Bookmark Topic Watch Topic
  • New Topic

checking button value

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here my form


in the servlet i need to do somthing on the value of button(value="10p").
but how to check what is the value of button?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65529
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do not name your button submit, that's asking for trouble (submit is a reserved word).

Did you try the obvious way of getting a submitted value?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok
now it is working

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!