OK, i'm going nuts on this one. I have a single checkbox added to a one page app. Nothing special. I'd like to find out when that checkbox is checked/unchecked, and show/hide another conponent as a consequence.
How do I do that? I've tried a large number of possible combinations of how to capture the checkbox value, and none have worked:
if ($('input[name=chkbxSaveAsTrigger]:checked').val() == "newtrigger") {
if ($('input', Appery("chkbxSaveAsTrigger")).prop("checked")) {
if ($("input[name=chkbxSaveAsTrigger]").attr ("checked")) {
if ($('input[name=chkbxSaveAsTrigger]').is(':checked')) {
if ($("input[name=chkbxSaveAsTrigger]").hasClass('ui-checkbox-on')) {
Any ideas?