aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to get checkbox vlaue using javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to get checkbox vlaue using javascript?" Watch "How to get checkbox vlaue using javascript?" New topic
Author

How to get checkbox vlaue using javascript?

prabhu pandurangan
Ranch Hand

Joined: May 23, 2008
Posts: 120
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
Well you either have to submit a form when it is checked:



OR

you need to look into using Ajax.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get checkbox vlaue using javascript?