In the function defined in my JSP page, check-boxes have been specified. The checkboxValue now represents the current state of these check-boxes.
When a check-box is clicked, its value changes to 'on'. I am looking for a way to store the 'on' state of the check-boxes in either browser or cookie session so that when the page is refreshed, the clicked check-box states remain intact or are retained in the checked state.
Could you kindly provide me with suggestions on how to implement this within the code provided below?
function() {
var checkboxValue = this._checkbox.get('value');
alert(checkboxValue);
if (checkboxValue == 'on') {
// do something
} else {
// do something else
}