I can't to check and uncheck the checkbox. I have the Checkbox group called "comunicar" and tree checkbox, celular, fixo, whatsapp. I move from REST SERVICE to localstorage the values 1 or 0. The script bellow is in page show, but I put any that commands I found and nothings is running.
What is wrong?
I only to check a checkbox but nothing.
var fixo = localStorage.getItem("com_fixo");
var celular = localStorage.getItem("com_celular");
var whatsapp = localStorage.getItem("com_whatsapp");
if (celular == "0")
{
Tiggzi("comunicar").find("celular").attr("checked");
var $select = Appery("comunicar");
$select.find('celular').attr("checked", false);
element.find('celular').prop('checked', false);
$('.celular').prop('checked', false);
$('.celular').attr('checked', false);
$('.celular').each(function(){ this.selected = false; });
$('input', Appery("celular")).prop("checked")
} else {
Tiggzi("comunicar").find("celular").attr("checked");
var $select = Appery("comunicar");
$select.find('celular').attr("checked", true);
element.find('celular').prop('checked', true);
$('.celular').prop('checked', true);
$('.celular').attr('checked', true);
$('.celular').each(function(){ this.selected = true; });
$('input', Appery("celular")).prop("checked")
}