• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get checkbox vlaue using javascript?

 
prabhu pandurangan
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Members,

Im using checkbox in my application, by default it should be checked=false, and when i click it( checked = true) i should call a struts action. When checkbox, checked is true i have to call a struts action and if checked=false i have to call another action. These things have to be done using javascript function.


Please help me in this...

Looking forward for your reply...

Regards,
Prabhu.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you either have to submit a form when it is checked:



OR

you need to look into using Ajax.

Eric
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic