jquery - Any way to get the value checkbox -
been working checkboxes , curious if there way value of "connected" checkbox? whenever console.log('input:checked').val()
value of on
, fine wanted save bit of time. thanks.
val()
returns value of checkbox if set else returns on. if want check checkbox checked:
$(selector).is(':checked')
check fiddle: http://jsfiddle.net/sdf2h/120/