simple modal trigger onclick w3school code example Example: how to make popup modal in jquery with example $('#sub-modal').modal({ closeExisting: false });