Answer the question
In order to leave comments, you need to log in
How to store the result of the click() function in cookies?
Good morning wt. guru. I'm trying to use the jquery cookies plugin and using it I'm trying to save changes.
Here's a trite class change for three points.
$('.JPY').click(function() {
$('.RUB').removeClass('active');
$('.JPY').addClass('active');
$('.USD').removeClass('active');
});
$.cookie('JPY', $(' .JPY').addClass('active'));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question