call modal through id without click event code example Example: display modal without button click $("#getCodeModal").modal("show");