TTATPuOT,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
jQuery(document).ready(function($) {
function readProperty(property, defValue){
if(localStorage[property] == null){
return defValue;
}
return JSON.parse(localStorage[property]);
}
$("#streams").prop('checked', readProperty("streams", true));
$("#streams").change(function(){
localStorage["streams"] = JSON.stringify($(this).prop('checked'));
});
});
</script>
</head>
<body>
<input id="streams" name="" type="checkbox">
</body>
</html>