I have a product list like this:
my checkbox value is product id, how to click button request more info
and add product id in checkbox to cookie.
Any help? Thank in advance.
You can store the cookie in js file using below method,
<script>
require([
'jquery',
'mage/cookies'
], function ($) {
$.cookie('cookie_name', 'value', { path: '/' });//Set the cookies
});
</script>