Like us on Facebook and stand a chance to win pen drives!

jQuery UI Dialog with Custom Buttons

jQuery UI Dialog
jQuery UI Dialog


<div id="dialog" title="Delete">
<p>Are you sure that you want to delete this division?</p>
</div>
 
 
$("#dialog").dialog({
modal: true,
resizable: false,
width: 800,
buttons: [{
text: "Yes",
click: function() {
alert("Clicked Yes");
}
},
{
text: "No",
click: function() {
$(this).dialog("close");
}
}]
 
});



0 comments:

Copyright © 2012 The Code Junction.