Find and remove all occurences of class .selected

Find and remove all occurences of class .selected

Supposing i have 3 divs.Div1,div2,div3.Once any div is clicked,i add the class selected to that div.In my example,once another div is clicked,i remove all the class selected from all my divs,even those that do not have selected and add class selected to the clicked div.So far i have this.

  1. $('div .kontainer').find('.selected').removeClass('selected');
Is this the right approach?.