Is it possible using bootstrap 3 styled btn-groups made up of checkboxes and radios to use tabbing to gain focus? These work fine when you use a mouse to click on them but in the case of someone tabbing through a string of inputs, these are completely ignored.
I understand that it is down to the inputs being hidden and only the labels showing.
Are there any known workarounds to get the desired behaviour?
<div class="row" id="radios">
<div class="col-xs-12">
<div class="form-group">
<label for="" class="col-md-6 control-label">Choose one radio option:</label>
<div class="col-md-6">
<div class="btn-group" data-toggle="buttons">
<label for="yes" class="btn btn-default">
<input type="radio" name="radio_options" id="yes"/> Yes
</label>
<label for="maybe" class="btn btn-default">
<input type="radio" name="radio_options" id="maybe"/> Maybe
</label>
<label for="no" class="btn btn-default">
<input type="radio" name="radio_options" id="no"/> No
</label>
</div>
</div>
</div>
</div>
</div>
Here is a workaround :
input:hidden
button
instead ofinput
to maintain tabbing focusbutton
click events to changeinput:hidden
value.Checkbox example
Radio example
Updated Fiddle