title: Calling Javascript from RadioButtonList onchange/Onclick
body: <p>I have a radiobuttonlist on whose change event I want to change the watermark text in a textbox.</p>
  
  <p>But I am not able to call Javascript function from RadioButtonList and also not able to retrieve the value of the selected field.</p>
  
  <p>Below is the code for the same.</p>
  
  <pre><code>&lt;asp:RadioButtonList ID="rdbSelectType" runat="server" CssClass="radioButtonList" RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="rdbSelectType_SelectedIndexChanged"&gt;
      &lt;asp:ListItem Selected="True" Value="0" Text="Auto Generate"&gt;&lt;/asp:ListItem&gt;
      &lt;asp:ListItem Value="1" Text="Manually Generate"&gt;&lt;/asp:ListItem&gt;
  &lt;/asp:RadioButtonList&gt;
  </code></pre>
  
  <p>Can anyone help me on this please?</p>