How to Get the Value of Bootsramp btn-group Using jQuery

jquery, twitter-bootstrap

Solution

you can do this by `text()`

$('.btn-group .btn').on("click",function(){

   alert($(this).text())
})

Problem

Hi can you please help me to figure out how to get the value of selected btn-group in Bootsramp using jQuery? Here is a Demo and this the code for `class="btn-group" data-toggle="buttons-radio":` ``` <div class="btn-group" data-toggle="buttons-radio"> <button type="button" class="btn btn-primary">Left</button> <button type="button" class="btn btn-primary">Middle</button> <button type="button" class="btn btn-primary">Right</button> </div> ```

Original source