Dropdown RRS feed

  • Question

  • User1979860870 posted


      I Have IsActive field in Database . It stores value "Y" / "N"

    In Modal Popup i want to display it as Dropdown

    <div class="form-group">
                                    <label class="control-label col-sm-3" for="IsActive">Active</label>
                                    <div class="col-sm-3">
                                        <input type="text" class="form-control" id="txtIsActive" placeholder="Active">


    Saturday, May 29, 2021 6:50 AM

All replies

  • User-1647939271 posted
    <label class="control-label col-sm-3" for="IsActive">Active</label>
       <div class="col-sm-3">
            <select name="IsActive" id="IsActive">
                <option value="Y" selected="selected">Yes</option>
                <option value="N">No</option>

    you can use select tag for Y and N values

    Saturday, May 29, 2021 8:58 PM
  • User-1545767719 posted

    In Modal Popup i want to display it as Dropdown

    what do you mean by "Modal Popup"?

    Saturday, May 29, 2021 10:46 PM
  • User287926715 posted

    Hi jagjit saini,

    Do you want this effect?

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css" rel="stylesheet" />
    <div id="dialog" title="IsActive">
            <option value="select">--</option>
            <option value="Y">Y</option>
            <option value="N">N</option>
    <input type="button" id="target" value="click" />
        $('#target').click(function () {

    If not, can you describe your specific requirements process clearly?

    Best Regards,


    Monday, May 31, 2021 2:35 AM