show modal when button click code example Example: display modal without button click $("#getCodeModal").modal("show");