See the working code here:
<asp:radiobuttonlist id="RadioButtonList1" runat="server" ClientIDMode="static">
<asp:listitem text="Residential" value="Residential"></asp:listitem>
<asp:listitem text="Commercial" value="Commercial"></asp:listitem>
</asp:radiobuttonlist>
<div id="res" runat="server">Residential</div>
<div id="com" runat="server">Commerecial</div>
And the JQuery:
<script type="text/javascript">
$(document).ready(function () {
$("#RadioButtonList1").change(function () {
var sel = $('#RadioButtonList1 input:checked').val()
if (sel == "Residential") {
$("#com").hide();
$("#res").show();
}
if (sel == "Commercial") {
$("#com").show();
$("#res").hide();
}
});
return false;
});
</script>
Regards..