Solution to jquery event invalidation after ajax partial refreshing, ajaxjquery
Live ()
Similar to bind.
The most important difference: live () can bind an event to the current and future elements (eg: bind a click event to the id = zy element, when you use js to dynamically generate a node and insert it into the dom document structure, if you bind it with bind (), there will be no bind binding event for the newly inserted node. While live () can );
Disadvantage: it cannot be used for chained structures.
Eg: $ ('selector '). live ('click', function () {}); the correct statement is as follows: $ ('# test '). live ('click', function (){});
$ ('. Class'). find ('span'). live ('click', function () {}) the error code is invalid.
Events bound to live () can be unbound using the die () method.
Referenced from: http://www.cnblogs.com/zony/articles/jquery.html
Using (Ajax. beginForm ("GetBasicInformation", "Employee", new AjaxOptions {UpdateTargetId = "basicInfo", LoadingElementId = "loading", LoadingElementDuration = 3000, Url = Url. action ("GetBasicInformation"), HttpMethod = "Post"}, new {@ class = "profileForm", id = "BasicInformation "}))
{
}