JavaScript cookies to persist radio button settings

Obituary

New Member
I want the radio button list values to be saved in JavaScript till the time the browser is closed (non-persistent cookies). I want to do that, instead of what happens now: when the page is reloaded my radio button list resets.\[code\]<asp:RadioButtonList ID="rblAttachmentType" runat="server" CssClass="radio" RepeatDirection="Horizontal" ToolTip="Select the type of file you want to upload."> <asp:ListItem Selected="True" Value="http://stackoverflow.com/questions/15569522/101">Picture</asp:ListItem> <asp:ListItem Value="http://stackoverflow.com/questions/15569522/102">Floor Plan</asp:ListItem> <asp:ListItem Value="http://stackoverflow.com/questions/15569522/300">Video</asp:ListItem> <asp:ListItem Value="http://stackoverflow.com/questions/15569522/200">Document</asp:ListItem></asp:RadioButtonList>\[/code\]
 
Back
Top