how to get Id option selected on modal show using js : I tried to get the ID on the option selected when the modal was in show state. 

This My Js

    $("#modal-form").on('shown.bs.modal',function(e){
    console.log("CHANGE");
    var id = $("#customer option:selected").val();
        console.log(id);
    });

This My Html (This code on modal)
    

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

         <div class="form-group">
                            <label for="customer" class="col-md-2 control-label">Customer</label>
                            <div class="col-md-9">
                                <select class="form-control" id="customer" name="customer" class="form-control">
                                    <option value="John">John</option>
                                    <option value="Alex">Alex</option>   
                                </select>
                                <span class="help-block with-errors" </span>
                            </div>
                        </div>


<!-- end snippet -->

sorry my english bad
thankyou
