Hi, I have a htmlinput - checkbox on a webform, i want to use javascript to check if the checkbox is checked or not and depending on the checked value pop up specific alerts. What javascript code should I use to achieve the above and also which event of the
htmlinput checkbox should I associate the javascript function sdescribed above. Thanks a lot
The related property for checkbox is "checked": For example: if (true==checkbox1.checked){ ... } If you like to hook up related event, you can try "onclick" Hope this helps Yugang
anitac
Member
415 Points
83 Posts
Htmlinput - Checkbox
Aug 25, 2003 09:12 PM|LINK
YugangW
Participant
1149 Points
227 Posts
Microsoft
Re: Htmlinput - Checkbox
Aug 25, 2003 10:28 PM|LINK