I'm currently in the process of replacing my radio circles with div elements.
I've successfully implemented the functionality for selecting options by clicking on the divs, as well as highlighting the selected div.
However, I'm facing trouble with removing the "selected" class from the other children within the same parent when one option is selected.
This is my current JavaScript code:
$('.option').click(function() {
$('input', this).prop("checked", true);
$(this).addClass('optionSelected');
}