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