Get and Set Cookie from multiple to style multiple (li)s

I want to the user when he select multiple input the jquery set a cookie then add my class to specific li where the value of the cookie is equal to the (data-id) of the li>>> please I need your help on this matter>>>

$("input").change(function() {
if ($(this).is(':checked')) {
    createCookie(, this.value, 1000);
} else {
    eraseCookie(, this.value);

if (readCookie( {
$('input').filter('[name='']').attr('checked', 'checked');

for more details, please see this

Source: css

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.