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/


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo