I have a scenario in which i am showing/Hiding a portion of the screen depending on whether the check box is checked or now.
So the catch here is that, Not only the user will be changing the state of the check box, but also programmatically.
So how do i detect this change and when ever the state of check box is changed , i want to section to be hidden or shown.
Presently i am doing like this...
externalCheckBoxClicked : function (e){
var $target = $(e.target),
checked = $target.prop('checked');
if(checked){
$('#confirm-button').show();
}else{
$('#confirm-button').hide();
}
}
setToPreviousSetValues : function(){
if(this.requestData.isOverrideExternalParams === "1"){
$('#ExternalParametersChkBox').prop('checked',true);
}else {
$('#ExternalParametersChkBox').prop('checked',false);
}
},
events: {
"change #ExternalParametersChkBox":"externalCheckBoxClicked",
},
Any Clue why this is not working.