Check Whether a check box is checked or not in JQuery

Check Whether a check box is checked or not in JQuery
[js]
$("#mapEnableLegend").prop(‘checked’)
[/js]
Here mapEnableLegend is my check box, the above code will return true, if that is checked, or false.

Leave a Reply

Your email address will not be published. Required fields are marked *

Serverless 360