Return CheckBox True False Status With jQuery Map

I am creating dynamic CheckBoxes using jQuery and by default, those are set to false status. Something as follows:

<input type="checkbox" class="cbCheck" value="false" />

So you can see no value or id is assigned there. Is it possible to just retrieve the true/false based on CheckBox checked/unchecked status something as follows using jQuery mapping?

string = $('input[type=checkbox]:checked').map(function (i, elements) {
    return elements; //Here the elements like true or false, instead of elements.value


Expected Output: true, false, false, true (Based on user selection)

8 thoughts on “Return CheckBox True False Status With jQuery Map”

  1. Hello there, I discovered your website by way of
    Google at the same time as looking for a comparable topic, your web site came up, it seems good.
    I have bookmarked it in my google bookmarks.
    Hello there, just was aware of your blog through Google, and located that it is truly informative.
    I’m gonna be careful for brussels. I’ll appreciate if you happen to continue this in future.
    Many other folks shall be benefited from your writing.