How is it possible to refresh a page/checkbox after changing the value via javascript. My App reads a boolean value from the localstorage and check or uncheck the checkbox.
$('#settingsContent').trigger("create");
$('#settingsContent').page();
Tried this two ways but it doesn't work. Only with the page() Methode i get a white page. Only with trigger("create") nothing happens.
<div id="settingsContent">
Is the name of my div tag.
It is a phonegap app using jquery html etc..
EDIT
valueVar = document.getElementById(nameVar);
if (timeStamp == true) {
valueVar.checked = true;
} else {
valueVar.checked = false;
}
timeStamp is a value from my localstorage. This work's. But after this code i check or uncheck my checkbox. It work's also. I need not refresh the page? To see the checked checkboxes?
.page()in jQuery?