Jquery Accessing grouped buttons with all similar attributes in a list
Was seeking help i am unable to access elements in grouped buttons without affecting next element with all similar attributes Example
<div class="btn-group">
<button type="button" class="btn btn-primary">
Apple
</button>
<button type="button" class="btn btn-primary">
Samsung
</button>
<button type="button" class="btn btn-primary">
Sony
</button>
</div>
<
div
class="btn-group"
>
<button type="button" class="btn btn-primary">
Apple
</button>
<button type="button" class="btn btn-primary">
Samsung
</button>
<button type="button" class="btn btn-primary">
Sony
</button>
</div>
NB:its a list generated dynamically and would like to access individual elements with jquery and toggle the buttons