form in modal dialog submission problem

form in modal dialog submission problem


Hello, I've set up a search form inside of a jQuery modal dialog but when I
submit the form I get an error indicating that I left the form empty.
- - - - - - - - - jQuery:
$(function(){
// Dialog
$('#dialog').dialog({
modal: true,
draggable: false,
resizable: false,
autoOpen: false,
width: 600,
buttons: {
"Submit": function() {
document.advSearch.submit();
},
"Cancel": function() {
$(this).dialog("close");
}
}
});
// Dialog Link
$('#dialog_link').click(function(){
$('#dialog').dialog('open');
return false;
});
});
What do I need to do to fix this?
--
View this message in context: http://old.nabble.com/form-in-modal-dialog-submission-problem-tp26840227s27240p26840227.html
Sent from the jQuery UI Discussion mailing list archive at Nabble.com.
--