Reputation: 17
I have the following code working pretty well, but I want to be able to select more than one option if need be: http://jsfiddle.net/exlondoner/MKa3n/
Can anyone help?
JS:
$('.media-select-option').on('click', function() {
$('.media-select-option').removeClass('selected');
$(this).addClass('selected');
$('.m-overlay-close-btn').addClass('checked');
});
Upvotes: 0
Views: 90
Reputation: 78971
It is not working because there is no such element with class m-overlay-close-btn
$('.overlay-close-btn').addClass('checked');
Upvotes: 1