document on change chk deploy_fcc function if this is checked select d

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
$(document).on('change', chk("deploy_fcc"), function() {
if( $(this).is(':checked') ) {
$("select.dataHandlingMode").append(new Option(
'DataLoad+DataRefresh',
'data-load+data-refresh'));
}
else {
$("select.dataHandlingMode option[value='data-load+data-refresh']").remove();
}
});