RsD0p9BK
3/2/2015 - 12:09 PM

disableButtonDialog.js

// Disable button in a jQuery dialog 

$("#dialog").dialog({ 
	buttons: [ 
		{
			id: "dialogSave",
			text: "Save",
			click: function() { $(this).dialog("close"); }
		},
		{
			id: "dialogCancel",
			text: "Cancel",
			click: function() { $(this).dialog("close"); }
		}
	]
});   

$("#dialogSave").button("option", "disabled", true);

// http://stackoverflow.com/questions/577548/how-can-i-disable-a-button-in-a-jquery-dialog-from-a-function