Check Whether a check box is checked or not in JQuery

Check Whether a check box is checked or not in JQuery
  1. $("#mapEnableLegend").prop('checked'
Here mapEnableLegend is my check box, the above code will return true, if that is checked, or false.