how to trigger a modal without a button code example Example: display modal without button click $("#getCodeModal").modal("show");