Josiel Denardi6690187
Posts: 0
Joined: Mon Feb 24, 2014 9:23 pm

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

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

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

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?

Return to “Issues”