checkbox group and checkbox item behaviour
Hi,
I am trying to use this logic in an onclick action but it does not seem to work. I always get a false response from the click. The "this" is a checkboxitem. Appreciate your guidance!
try{
alert('value check --'+Appery(this).find('input').is(':checked')); //always returns false
if(Appery(this).find('input').prop('checked')===false){ //always returns undefined
alert('add');
createGroupSession.execute();}
else if(Appery(this).find('input').is(':checked')===true){
alert('delete');
queryGroupSessionRecord.execute();deleteGroupSessionRecord();}
}
catch(err){
alert(err);}