bootstrap show modal dialog from javascript code example Example: html data-target modal $('#myModal').modal('show')