Select Radio Inputs JavaScript
Posted Aug 16, 2007
Last Updated Nov 11, 2011
This JavaScript function is designed to allow you to set all radio inputs in a form to the value passed into the function.
smo_selectRadioValues(value,theElements)
value is the value to set all radio inputs in the form. theElements should be a comma separated list of the ids of elements to target. Below are examples.
To use this function add the following line of code to your HTML head:
<script type="text/javascript" src="http://www.shawnolson.net/scripts/radioFuncs.js"></script>
Set With Buttons
Set with Radios
- Free Useful Javascripts
Links to articles that give free javascript code or javascript examples.
- Altering CSS Class Attributes with JavaScript
- Change HTML Styles with JavaScript
- Select Some Checkboxes JavaScript Function
- Select All Checkboxes in a Form with JavaScript
- Get a Form Element's Label with JavaScript
- Select Radio Inputs JavaScript
- UseMaps Crash IE When Changed
- Hide Select Menus JavaScript
- Manipulating Element Styles Based on CSS Classes Using Prototype
- Compare Values with Arbitrary Comparison Operator
- Related Topics