Setting a check box to checked or unchecked in java script
-
- 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
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.
- 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
The syntax is as follows:
getObj("mycheckbox").checked = true;
Where mycheckbox is the id (case-sensitive) of the checkbox.
getObj("mycheckbox").checked = true;
Where mycheckbox is the id (case-sensitive) of the checkbox.
Who is online
Users browsing this forum: No registered users and 3 guests