Setting a check box to checked or unchecked in java script

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
nascar88
Profound User
Posts: 42
Joined: Wed Aug 04, 2010 5:12 pm
First Name: Bob
Last Name: Steach
Company Name: APHA
Contact:

Setting a check box to checked or unchecked in java script

Post by nascar88 »

I want to either check or uncheck a check box using a client side java script. When the user clicks on one check box I want to check another check box on the screen using java script. I am having trouble determining what property needs to be set on the check box.
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: Setting a check box to checked or unchecked in java script

Post by Alex »

The syntax is as follows:
getObj("mycheckbox").checked = true;

Where mycheckbox is the id (case-sensitive) of the checkbox.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests