Hi!
I have created a modal dialog. When I close it the page refreshes automatically but in my scenario the page should not do so.
The code I am using is:
$(document).ready(function () {
$("#addaccount").dialog({
height: 'auto',
width: 'auto',
modal: true,
autoOpen: false
});
$("#addaccountlink").click(function (e) {
$('#addaccount').dialog('open');
});
Here I am opening a div tag inside a modal dialog. There is a form submit button. When I click the submit button the modal dialog closes and the page refreshes automatically.
Urgent help is needed.