1
Answer

How to Store CheckBox Checked and Unchecked in Hidden Field

Amit Singh

Amit Singh

8y
386
1
Hi, 
Actually i am checking and Unchecking Checkbox using Jquery
 
Now,When I click on Preview Buttton ... Its the Checked Checkbox Record.
 
But When I click on Send Button,Which is inside Popup
 
 
But i am losing Checkbox Checked Records and all records inside child Gridview Visible.
 
 
At Page_load all Checkbox Should be Checked.Its my Condition. 
 
Answers (1)
0
Manas Mohapatra

Manas Mohapatra

NA 29.3k 3.3m 8y
You can use Cookie or LocalStorage concept to store checkbox values. If you are good with HTML 5 then use LocalStorage otherwsie use cookie. And then when page reloads fetch data from cookie/localstorage.
 
Follow below links:
 
https://www.sitepoint.com/quick-tip-persist-checkbox-checked-state-after-page-reload/
 
http://stackoverflow.com/questions/13936865/jquery-save-checkbox-state-on-click-in-cookie