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