Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 529.7k

Radio Button Click event

Sep 20 2022 6:36 AM

Hi

I want if rb1 is clicked then its BackGround Color should be Green.

If rb2 is clicked then its BackGround Color should be Red.

<td>
    <div class="btn-group btn-group-toggle" data-toggle="buttons">
        <label class="btn btn-outline-primary">
            <asp:RadioButton ID="rb1" GroupName="options" runat="server" checked="true" Text="P"/>
        </label>
        <label class="btn btn-outline-primary">
            <asp:RadioButton ID="rb2" GroupName="options" runat="server" Text="A"/>
        </label>
    </div>
</td>

 


Answers (2)