I have a few limitations on the modal form:
<div class="block-footer align-right"> <button type="button">Submit</button> <button type="button">Submit & Close</button> <button type="button">Close</button> </div>
How can I do this when the user presses the Enter key, then the first βSubmitβ button will be pressed. This is important for the click action, since I want the user to visually display the color of the button when clicking on it.
Note that I already did the following and associated the execution of the function with this button:
$('#modal button:contains("Submit")').click(function () { submitHandler(dObj.$link, $('#main-form'), false); });
user1464139
source share