Getting the value of checked radio button
function test(mvalue)
{
document.forms[0].industry.value=mvalue;
}
function show()
{
temp=document.forms[0].industry.value;
alert(temp);
} <input type="hidden" name="industry">
<input type="radio" name="r" value="Manufacturing"
onClick="test(this.value)">
<input type="radio" name="r" value="Service"
onClick="test(this.value)">
<input type="button" name="b" onClick="show()">