I have a submit button which has been working to submit my form in ASP.NET-MVC.
I would like to attach a jQuery dialog to the button click. If the user exits out of the dialog, then I would like to exit from the submit as well.
I have dialogs hooked to other buttons, but not submits. How can I do this?
*EDITED*
This is an example of the dialog I have on another button.
<button type="button" id="create-company" >Create Company</button>
<div id="popupCreateService_Line" title="Create a new service line">
<fieldset>
<label for="service_line_name">Name:</label>
<%= Html.TextBox("service_line_name") %>
<label for="service_line_desc">Desc:</label>
<%= Html.TextBox("service_line_desc") %>
</fieldset>
</div>
$("#create-service_line").click(function() {
$('#popupCreateService_Line').dialog('open');
});