Quantcast
Viewing all articles
Browse latest Browse all 28

Answer by Combine for Check if checkbox is checked with jQuery

I know the OP want jquery but in my case pure JS was the answer so if anyone like me is here and do not have jquery or do not want to use it - here is the JS answer:

document.getElementById("myCheck").checked

It returns true if the input with ID myCheck is checked and false if it is not checked.

Simple as that.


Viewing all articles
Browse latest Browse all 28

Trending Articles