Return to Snippet

Revision: 7768
at August 12, 2008 08:12 by stancell


Initial Code
/**
 * Example. return radioValue(form['radioName'])
 */
function radioValue(radioNodeList) {
	for (var i = radioNodeList.length - 1; i > -1; i--) {
		if (radioNodeList[i].checked) {
			return radioNodeList[i].value;
		}
	}
	return false;
}

Initial URL

                                

Initial Description

                                

Initial Title
Get  radio button input value

Initial Tags

                                

Initial Language
JavaScript