2
Answers

Radio Button Click event

Ramco Ramco

Ramco Ramco

2y
1.1k
1

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)