I have some radio-buttons in a Bootstrap 3.3.5 setup. If a certain radio-button is checked an addional input field may be filled. I thus want to place it near that radio button. What is a good way to do that? Whether I place it in the label
or the li
- it's always displayed with a break before and breaks the inline display of the radios.
<ul class="list-inline">
<li>
<label class="radio-inline">
<input type="radio" name="rdoInp" id="rdoInp1" value="1"> Radio 1
</label>
</li><li>
<label class="radio-inline">
<input type="radio" name="rdoInp" id="rdoInp6" value="6"> Radio 6
</label>
</li><li>
<label class="radio-inline">
<input type="radio" name="rdoInp" id="rdoInp7" value="7"> Radio 7
<input type="text" name="txt1" class="form-control col-xs-1">
</label>
</li><li>
<label class="radio-inline">
<input type="radio" name="rdoInp" id="rdoInp8" value="8"> Radio 8
</label>
</li>
</ul>
Unlike answered in Question add text input to inline radio buttons am I in a .form-horizontal
formular.