Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript and CheckBoxes help

Status
Not open for further replies.

NateUNI

MIS
Jan 3, 2002
132
US
I have 2 check boxes on my acrobat form. I want to do some javascript on the submit button to ensure that the user has selected at lease one of the check boxes. Right now i have the following code:

if (h.isBoxChecked(0) && g.isBoxChecked(0))

which checks to see if both of the check boxes are checked. What I want to know is how to do is to change the line of code to read:

if (h.isBoxChecked=no && g.isBoxChecked=no)
alert the user to select a checkbox

How would i change my original code?? Thanks for all the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top