checkbox group and checkbox item behaviour
Reposting here, because my last question was set as "answered", while it didn't answer what I needed.
Can somebody explain me clearly how to address checkboxes in Tiggzi, and what is the programmatic difference between the checkbox group and the checkbox item?
Especially with for example 1 checkbox, Tiggzi creates a checkbox group and a checkbox item.
On which elements do I have to call the methods? For example checkboxradio('refresh')? It seems to be different for val(), is(:checked), prop('checked')? And what about trigger('change') , this is all giving mixed results if applied to the checkbox group or the checkbox item.
1) If I use the checkbox "value change" event, this event is fired 2 times when I click the single checkbox. Is this standard behaviour?
2) Also, when checking the state of the checkbox in javascript, it is not working:
Tiggzi('chkItemFavoriet').prop('checked') gives UNDEFINED
and $('input[name="chkItemFavoriet"]').is(':checked') gives FALSE
my checkbox is named 'chkItemFavoriet'
3) This is what happens if I do the checking on the name of the control GROUP I defined in Tiggzi instead of the name of the checkbox item:
Tiggzi('chkFavoriet').prop('checked') : UNDEFINED $('input[name="chkFavoriet"]').is(':checked')): TRUE
Somebody agrees that this is inconsistent or strange behaviour?
That's why I was asking what Tiggzi is doing with the control group and individual checkboxes, from a programmatic point of view, because the checkbox checking and setting is unpredictable.