TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Saroj Kumar Sahu
NA
83
0
Disable a button in a jQuery modal dialog while loading
Jun 18 2013 5:15 AM
Hi,
I'm new to JQuery.I have a jQuery dialog. In this form, I have a "Save" button. I would like this "Save" button to be disabled while the modal dialog open or from a function.
The code i wrote to create this button is given below. However, I don't know how to enable and disable the dialog button from a function or at the time of loading the dialog. What should I do?
$('#divAddExpense').dialog({
modal: true,
autoOpen: false,
height: 'auto',
width: 650,
draggable: true,
position: 'center',
resizable: false,
buttons: { "Close": function () { $(this).dialog('close'); },
"Save": function (evt) {
//Save click code here
},
close: function () {
//some code
}
});
Plz help me out.
Reply
Answers (
5
)
Gridview and jquery: Jquery code is not working properly
jquery