montolcsb
7 months ago

Select Option Not Working

Posted 7 months ago by montolcsb

javascript

   function addRoom() {
        $('#addRoom').clone().appendTo('#contain-room');
    }

html


<div id="contain-room" class="col-12">
            <div class="row" id="addRoom">       
                            <div class="col-9 col-md-7 col-lg-4 d-flex align-items-center">
                            <select class="browser-default custom-select select-meseoul"name="room_branch" id="1">
                                                    <option value="0" selected>กรุณาเลือกห้อง</option>
                                                    <option value="1">One</option>
                                                    <option value="2">Two</option>
                                                    <option value="3">Three</option>
                              </select>
                                <button type="button" class="btn btn-del-hr">
                                <i class="far fa-trash-alt"></i>
                                </button>
                               </div>
                 </div>
    </div>

Please sign in or create an account to participate in this conversation.