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

Set Values
Radio Test

Comment

No HTML Tags are permitted.

Wall Worm plugins and scripts for 3ds Max