I have a Radio button list like this code in an update panel:
<asp:RadioButtonList ID="RadioButtonList1" runat="server" Width="233px"
ClientIDMode="Static" AutoPostBack="true"
onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3">3</asp:ListItem>
<asp:ListItem Value="4">4</asp:ListItem>
</asp:RadioButtonList>
I want when user clicks on any item of this radio buttons a Please Wait... text show instead of radio button text.I write this code :
function pageLoad() {
$(document).ready(function () {
$('#RadioButtonList1').on("change", function () {
$("#RadioButtonList1 input:checked").val("Please Wait...");
});
});
}
but it does not work.Where is my mistake?
thanks
You should change this code: