Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Niles Runeberg #1
Limiting radio buttons with Javascript
Hello all,
I have a very large form, and one of the sections in the form is a group of
about 14 checkboxes. I would like to limit the number of checkboxes that a user
may click on to 3, BUT ONLY IN THIS GROUP. Right now I have code which limits
the number of checkboxes you can click on, but for an entire page, not just a
section.
Here it is:
<script language="JavaScript" type="text/javascript">
function chNum(mostneededtech)
{aVar=mostneededtech.form
cCount=0
for (i=0;i<aVar.elements.length;i++)
if (aVar.elements[i].type==='checkbox' && aVar.elements[i].checked)
cCount+=1
if (cCount > 3){
alert('Please only select 3 boxes.')
mostneededtech.checked=false
}
}
</script>
Can someone please help!? Thank you in advance.
Niles Runeberg Guest
-
help with radio buttons
I need some help with my radio buttons. I have 3 radio buttons in my form. Now when one is selected and the form is submitted they all go to the... -
Invintory control by limiting forms with javascript?
I am trying to control how many items a user can order by changing the form field with JavaScript. This isn't working well. Perhaps someone could... -
Radio Buttons
hi, can you let me know how to clear a radio button when the screen is loaded up again -
Flash MX 2004: Making radio buttons without using the radio buttoncomponent
Hello Can anyway suggest a good guide for making radio buttons without the radio button component? I'm new to Flash, but I've gotten to the point... -
Radio buttons help
Try Using The Following: radioButtonName.setStyle("color", 0xFFFFFF); Replace The "FFFFFF" With The Hex Code For Whatever Colour You Want.



Reply With Quote

