Page 1 of 1

Don't can to put "checked" in Checkbox elements

Posted: Mon Aug 22, 2016 8:05 pm
by Josiel Denardi6690187

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")
}


Don't can to put "checked" in Checkbox elements

Posted: Wed Aug 24, 2016 1:03 pm
by Josiel Denardi6690187

Any response?


Don't can to put "checked" in Checkbox elements

Posted: Thu Aug 25, 2016 5:29 pm
by Evgene Karachevtsev

Hello Josiel,

Sorry for the radio silence. Could you please clarify do you have any errors in a browser console when you test your app there?