How can i validate checkboxlist in javascript?
validate the checkboxlist in the java script
Status:
Open May 28, 2007 - 09:04 PM
JavaScript
4answers
Answers
Jan 29, 2009 - 05:16 AM
What do you mean by checkboxlist ? Unless that is something new, I am not sure of what that is. You either have one or more checkboxes, any of which can be selected or if you want just one choice then its a radio button choice
Jan 29, 2009 - 05:32 AM
Simple radio button validation. Form which asks you to select a fruit. Note, the form submit specifies to call a javascript function. In that I iterate thru the radio buttons, make sure the buttons have the same nameIn checkFruitEntered code, I set a variable to be -1. If a fruit is selected then I set it to that index. see the final if in that method. !! Select A Fruit : I like Apples I need some Pears I love Bananas
Jan 29, 2009 - 05:34 AM
forgot to add, to get to the form variable in javascript, do the following
.
in this case, formname is quomonTest (code=
Mar 24, 2009 - 06:45 AM
The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.
The Quomon Team
Answer this question
Share Your Own Experience & Expertise
We look to ensure that every question is answered by the best people with relevant expertise and experience, the best answers include multiple perspectives. Do you have relevant expertise or experience to contribute your answer to any of these commonly asked questions?
Add New Comment