asp.net mvc - How to close json popUp which is open by partial view after save in MVC 5 -
i new in mvc. using mvc 5.how close popup after create / save. here view code:-
<div id='opendilog'></div>` function createemployee() { var div = $("#opendilog"); div.load("/category/create", function () { div.dialog({ modal: true, width: 500, height: 400, title: "add new details", resizable: false }); }); }
assuming using jquery.ui create dialog, can add "close" button this:
div.dialog({ buttons: [ { text: 'close', click: function() { $(this).dialog('close'); } } ] });
same goes "create" button. add $(this).dialog('close');
@ end of create button click handler.
Comments
Post a Comment