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