I have a list of checkboxes, that I’d like, when clicked to be added to a cookie using jQuery.
My code is like:
<input type="checkbox" value="vat_50" name="vat_50" class="tax">
<input type="checkbox" value="vat_34" name="vat_50" class="tax">
<input type="checkbox" value="vat_12" name="vat_50" class="tax">
How would I set the cookie, for the checkboxes above?
I’ve seen $.cookie, but not sure how to implement it.
Thanks
Try this provided you using jquery cookie plugin