open modal using javascript function code example Example: open modal js $('#modal-name').modal('show');