RemoveClass of other childeren in same parent div

amro yehia

New Member
I am trying to replace my radio circles by div's. The selecting by clicking on the divs works.The highlighting of the selected div works.But how can i remove the "selected" class of the other childeren in the same parent when i select one of the other options?My JS is now:\[code\]$('.option').click(function() { $('input', this).prop("checked", true); $(this).addClass('optionSelected');}\[/code\]http://jsfiddle.net/S7Js8/
 
Back
Top