JSFiddle - React, Tailwind, and code Playground
by ithcy
HTML
<input type="checkbox" name="checkboxlist[]" value="1" /> Item 1<br/>
<input type="checkbox" name="checkboxlist[]" value="2" /> Item 2<br/>
<input type="checkbox" name="checkboxlist[]" value="3" /> Item 3<br/>
<input type="checkbox" name="checkboxlist[]" value="4" /> Item 4<br/>
<input type="checkbox" name="checkboxlist[]" value="5" /> Item 5<br/>
<input type="checkbox" name="checkboxlist[]" value="6" /> Item 6<br/>
<br/>
<a href="#" id="asinLookup" class="addmarkeditems fancybox.ajax">Save Test 2</a>
JavaScript
$("#asinLookup").on("click", function() {
var asinValues = $('input[name^=checkboxlist]:checked').map(function() {
return this.value;
}).get();
var href="wp-content/themes/twentyelevenchild/addmarked.php?asin=" + asinValues;
$(this).prop("href", href);
return true;
});