1
Answer

Enable Disable TextBox

Ramco Ramco

Ramco Ramco

Sep 04
372
1

Hi

  I have Dropdown ModeOfPayment. I want if user selects Bank then txtAccountNo,txtAccountName should be enabled else

they should remain false

<div class="form-group">
    <label>Mode Of Payment</label>
    <asp:DropDownList ID="ddlModeOfPayment" class="form-control select-search" runat="server">
        <asp:ListItem Value="0">Cash</asp:ListItem>
        <asp:ListItem Value="1">Cheque</asp:ListItem>
        <asp:ListItem Value="2">Bank Transfer</asp:ListItem>
    </asp:DropDownList>
</div>

Thanks

Answers (1)