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         });      });   } 

enter image description here

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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -