Hey everyone,
I have this code:
@ using (
Ajax.BeginForm( "Index" , "Assortiment" ,
new AjaxOptions ()
{
UpdateTargetId = "sortandpost" ,
HttpMethod = "Get" ,
InsertionMode = InsertionMode .Replace
}
)
)
{
@Html.AntiForgeryToken()
@Html.ValidationSummary( true )
for ( var i = 0; i < Model.Count; i++)
{
< div class ="Textboxtcheckbox"> @Html.TextBoxFor(x => x[i].TaxonomyName, new { @readonly = true , Style = "border:0; width:100%" }) </ div >
< div class ="checkboxList">
@Html.CheckBoxListFor(
x => x[i].PostedTerms.TermIds,
x => x[i].AvailableTerms,
term => term.Id,
term => term.Name,
x => x[i].SelectedTerms
)
</ div >
}
}
And this is my jquery to trigger the checkboxes:
Now everytime I click one if the checkboxes the result is updated, which is all good.
Now I would like to have that when you click the back button in the browser you go to the previous state.
Can anyone help me out here? I've been searching the net for hours (seen hash things) but I don't know how to implement this.