JavaScript
How to che ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
How to check whether the checkbox is selected? Select all correct options.
if ($(elem).attr("checked") == 'checked')
if ($(elem).is(':checked') == true)
if ($(elem).is(':checked') == false)
if ($(elem).val() == 'checked')
if ($(elem).val() == 'on')
if ($(elem).prop("checked") == true)
if ($(elem).prop({ disabled: false }) == true)
Explanation
Get an explanation when it's available:
Subscribe
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
J
avaScript
Quiz
Login to learn JavaScript
or
Read more about
JavaScript Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment