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