So I currently have a jQuery dialog with two buttons: Save and close I use the code given below I create dialogs:
I am posting again as a question because no one can post it Here's and it's very cleaner and nipper:
Use the optional button
property syntax:
$ dialogDiv.dialog ({autoOpen : False, modal: {Text: "Cancel", "class": 'cancelButtonClass', click: function () {// cancel code here}}, {text: "save": true, width: 600, resizable : False, button: Click "Class": 'saveButtonClass', click: function () {// save code here}}, close: function () {// here Close the code (coincidentally, similar to the cancellation code)}});
No comments:
Post a Comment