Skip to main content
added 13 characters in body
Source Link
Leniel Maccaferri
  • 102.7k
  • 48
  • 381
  • 495

thisThis is also an idea iI use it usuallyfrequently:

var active = $('#modal-check-visible').prop("checked") ? 1 : 0 ; 

ifIf cheked will, it'll return 1 else will1; otherwise it'll 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

This is also an idea I use frequently:

var active = $('#modal-check-visible').prop("checked") ? 1 : 0 ; 

If cheked, it'll return 1; otherwise it'll return 0.

Source Link
Rtronic
  • 673
  • 5
  • 7

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