how to data-toggle modal without button using jquery code example Example: display modal without button click $("#getCodeModal").modal("show");