Home:ALL Converter>Open window modal Bootstrap with javascript without jQuery?

Open window modal Bootstrap with javascript without jQuery?

Ask Time:2018-05-26T01:12:00         Author:user9134157

Json Formatter

I would like open a Bootstrap 3.3.7(I don't use v4) window modal. I use Google map API and I want, when I click on my Markers, don't open infoWindo of API, but open window modal. can you help me ? I found answer with jQuery but not in javascript without jquery. thanks for your help. sorry for my bad english

How in this envent call my window modal with id='myModal' ?

 myMarker.addListener('click', function () {
            //infowindow.open(map, myMarker);
        });

html

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">&times;</span>
                            </button>
                            <h4 class="modal-title" id="exampleModalLabel">Titlee</h4>
                        </div>
                        <div class="modal-body">



                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                            <input type="submit" class="btn btn-primary" Value='Valider '>
                        </div>

                    </div>
                </div>
            </div>

Author:user9134157,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/50534027/open-window-modal-bootstrap-with-javascript-without-jquery
yy