this is also idea i use it usually
var active = $('#modal-check-visible').prop("checked") ? 1 : 0 ;
if cheked will return 1 else will return 0
this is also idea i use it usually
var active = $('#modal-check-visible').prop("checked") ? 1 : 0 ;
if cheked will return 1 else will return 0