Hello
I have a radiobuttonlist on a asp.net page and i want to retrieve the value of the selected item.
Here is the HTML returned:
Can you do this in 1 line of code?
I have a radiobuttonlist on a asp.net page and i want to retrieve the value of the selected item.
Here is the HTML returned:
Code:
<table id="rdbTypeList" onmouseup="ToggleFlatsMaisonette()" border="0">
<tr>
<td><input id="rdbTypeList_0" type="radio" name="rdbTypeList" value="1" /><label for="rdbTypeList_0">House</label></td><td><input id="rdbTypeList_1" type="radio" name="rdbTypeList" value="2" /><label for="rdbTypeList_1">Flat / Studio</label></td><td><input id="rdbTypeList_2" type="radio" name="rdbTypeList" value="3" /><label for="rdbTypeList_2">Maisonette</label></td><td><input id="rdbTypeList_3" type="radio" name="rdbTypeList" value="4" /><label for="rdbTypeList_3">Bungalow</label></td><td><input id="rdbTypeList_4" type="radio" name="rdbTypeList" value="5" /><label for="rdbTypeList_4">Bedspace</label></td>
</tr>
<tr>
<td><input id="rdbTypeList_5" type="radio" name="rdbTypeList" value="6" /><label for="rdbTypeList_5">Live Work Unit</label></td><td><input id="rdbTypeList_6" type="radio" name="rdbTypeList" value="7" /><label for="rdbTypeList_6">Static Home</label></td><td><input id="rdbTypeList_7" type="radio" name="rdbTypeList" value="8" /><label for="rdbTypeList_7">Garage</label></td><td><input id="rdbTypeList_8" type="radio" name="rdbTypeList" value="9" /><label for="rdbTypeList_8">Parking space</label></td>
</tr>
</table>
Can you do this in 1 line of code?