In my view i create a dynamic radio button the sample code of this is as follows..
@for (int i = 0; i < Model.ChManufacturer.Count(); i++)
{
if (@Model.ChManufacturer[i].Text == "Select ...")
{
}
else
{
<td> <input id="manufacturer:@Model.ChManufacturer[i].Text" type="radio" name="Manu_rbgrp" value="@Model.ChManufacturer[i].Text"> @Model.ChManufacturer[i].Text
</td>
}
}
but i am in need of get the selected radiobutton value. How to get the values of a checked radiobutton.. For Ex: O abc , O bbc, O ccc. So if i select the 2nd option means ithe value is bbc. Any answer??? i got the following output at the runtime
<td>
<input id="manufacturer:GLI-List" type="radio" value="GLI-List" name="Manu_rbgrp">
GLI-List
</td>
<td>
<input id="manufacturer:Latham-List" type="radio" value="Latham-List" name="Manu_rbgrp">
Latham-List
</td>
<td>
<input id="manufacturer:Loop-Loc-List" type="radio" value="Loop-Loc-List" name="Manu_rbgrp">
Loop-Loc-List
</td>
<td>
<input id="manufacturer:Merlin-List" type="radio" value="Merlin-List" name="Manu_rbgrp">
Merlin-List
</td>