-1
我希望單選按鈕列表值可以保存在JavaScript中,直到瀏覽器關閉(非持久cookie)爲止。我想這樣做,而不是現在發生的事情:當頁面重新加載時,我的單選按鈕列表重置。JavaScript cookies堅持單選按鈕設置
<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="101">Picture</asp:ListItem>
<asp:ListItem Value="102">Floor Plan</asp:ListItem>
<asp:ListItem Value="300">Video</asp:ListItem>
<asp:ListItem Value="200">Document</asp:ListItem>
</asp:RadioButtonList>
[你有什麼試過?](http://mattgemmell.com/2008/12/08/what-have-you-tried/) – nnnnnn 2013-03-22 11:48:27