I am using asp.net MVC with Jquery.
I use RenderPartial method to load control and open as modal dialog. After submit small form on modal dialogue i want to get focus on same dialogue in case of error.
Javascript
$(function() {
$("#dialog").dialog({
bgiframe: true,
height: 180,
width:380,
modal: true,
autoOpen: false,
resizable: false
})
});
Any idea.