if clicked ok after modal then an button will appear code example Example: display modal without button click $("#getCodeModal").modal("show");