Hi there,
I am trying to get the text values of all of the checked-checkboxes and after researching the Appery.io forum, I found that this is what gets me closest to achieving that goal.
prevar checkboxValues = [];
$("input[type='checkbox']:checked", $.mobile.activePage).each(
function(i, el) {
console.log($(el).val());
checkboxValues.push($(el).val());
});
localStorage.setItem("arr", JSON.stringify(checkboxValues));/pre
This solution seems to almost work for me. It doesn't record the value of the items that are checked but it gets the correct number of items. See the attached screen shot. It says ["Item 1","Item 1","Item 1"] instead of ["S17","165","567"]. I have mapped the text directly to the checkbox item but for some reason, it doesn't save it.