I’m using .NET MVC3…. and I have a partial view that renders into a page when a button is clicked…
$('#myLink').click(function () {
$('#partial2Div').load(this.href);
return false;
});
But… I have a cancel button INSIDE this partial view when it loads and I’m trying to figure out how to have the ‘original’ page preserve its state (it has edit fields on it) when this cancel button is pressed… and just have the partial view disappear.
if you have updated the
partial2Divthen well change your logic to not do so instead have another div where your partial will be inserted, if thats not the case andpartial2Divis just meant for that partial all you got to do is hide thatdivas follows: