I am trying to record that the user has checked the checkbox, and am not sure where to start. this is using the ionic framework with vanilla JS.
I have the tag for a checkbox:
<ion-list>
<ion-checkbox id="Email-check">Email</ion-checkbox>
<ion-list>
A variable that is refering to the ID in the tag:
const emailCheckbox = this.querySelector('#Email-check');
And an empty function:
function storeemailCheck(){
}
As per the documentation there is a checked attribute on the ion-checkbox element, so you should be able to target that attribute using
emailCheckbox.checkedinside your function.