I am using jQuery modal confirmation like this:
$(function() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height:190,
width: 330,
modal: true,
buttons: {
"Yes": function() {
$( this ).dialog( "close" );
},
No: function() {
$( this ).dialog( "close" );
}
}
});
});
<div id="dialog-confirm" title="Genalytics">
<p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>Are you sure want to unshare?</p>
</div>
I have a input button in a form like this:
<input type="submit" value="Unshare" name="unshare" />
I want to popup dialog box when user clicks on the button. How can I do that?
I have created Model popup by own no third party plugin.
Could you please try given link.
See Demo
Hope it likes you.
you need to use the submit event in the form where the submit button is.