event for partial view unload
-
we're loading all partials views to a common div. $(divname).load(url); on clicking a row in a table or clicking on an icon,or clicking on link, view changes. my requirement is, in a partial view, we have two text boxes which are free type. before this view clears, i need to save these data to db. what appropriate event is to be used before this view goes? i tried $(document).unload,$(document).unbind,$(div).change,$(div).unload etc. nothing worked. please help me to resolve this issue
-
we're loading all partials views to a common div. $(divname).load(url); on clicking a row in a table or clicking on an icon,or clicking on link, view changes. my requirement is, in a partial view, we have two text boxes which are free type. before this view clears, i need to save these data to db. what appropriate event is to be used before this view goes? i tried $(document).unload,$(document).unbind,$(div).change,$(div).unload etc. nothing worked. please help me to resolve this issue