How to “stop” closing modal if form invalid
问题 I have a form in a Semantic UI Modal, and I use the jQuery Form Plugin (http://malsup.com/jquery/form/#validation) to submit the form via ajax. The "submit" process of the form is triggered by the modal "ok" button. But if the form is invalid, the modal is still closed. How can I "stop" the modal close procecedure? Thanks a lot! edit Code snippets: the modal: <div class="ui modal" id="add-item-modal"> <i class="close icon"></i> <div class="header"> Eintrag hinzufügen </div> <div class=