How to follow the link and remember the checkbox?
Guys, tell me, please, there is such a list:
in html it is done like this:
<a class="filters-check__link" id="1" href="http://namesite.com/cat/odin"> <input class="filters-check__checkbox" type="checkbox" id="1"> <label class="filters-check__label" for="1">Apple</label> </a>
It's just that when I click on the brand name on the link, I go without any problems, I need that when I click the checkbox, I also go to the link, and also remember the selected checkbox, please tell me how you can do this?
On the server, you check which link was followed, and, on its basis, set the `checked` attribute to the required inputAnonymous
If you need to save information about a click on a checkbox on the client, then you can do something like this
To place the code, please use CodePen or similar tool. Thanks you!