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