I have the following DOM structure:
<div class="city">
<div class="a">Delete</div>
<div class="b">Selected</div>
<div class="c">Delete</div>
</div>
How do you save city and div class b, but delete div class a and c if you know that the user has selected “b” (you know this using logs your console.log(variable))
Basically what JQuery method would you use to do this and how?
Or
With class variable: