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