Hi ,
I am using JQuery for showing a modal dialog box. The dialog box has a file upload control and upload button. Also it contains two buttons for save and cancel.
I need to make the file upload control a mandatory one. I can able to traverse the file control and get the path using $(this).parent().siblings().children().get(1).value; and display the error message on click of upload button. But I want to show the same error displayed for save button also.
Need help to traverse from save button as I created the button along with dialog box like
$("#dialog").dialog({
bgiframe: true,
autoOpen: false,
height: 500,
width: 600,
modal: true,
buttons: {
Cancel: function() {
$(this).dialog('close');
},
'Save': function() {}
}
});