i'm trying to get all the checked items from this form with js. i looked at previous solutions but couldn't find anything that match for me.
<form id="checkform" class="container" style="margin-top:20px;">
<input type="checkbox" name="MX" value="MX" onclick="func(checkform)"> MX <br>
<input type="checkbox" name="SPF" value="SPF" onclick="func(checkform)"> SPF <br>
<input type="checkbox" name="DMARC" value="DMARC" onclick="func(checkform)"> DMARC <br>
<input type="checkbox" name="VRFY" value="VRFY" disabled> VRFY<br>
<input type="checkbox" name="SMTPTLS" value="SMTPTLS" disabled> SMTPTLS<br>
<input type="checkbox" name="OpenRelay" value="OpenRelay" disabled> OpenRelay<br>
<input type="checkbox" name="ReverseDNS" value="ReverseDNS" disabled> ReverseDNS <br>
<input type="checkbox" name="BlackList" value="BlackList" disabled> Black List <br>
</form>
im expecting to get a list with all the names of the checked elements.