css - Display input text in Bootstrap radio-inline list -


i have radio-buttons in bootstrap 3.3.5 setup. if radio-button checked addional input field may filled. want place near radio button. way that? whether place in label or li - it's displayed break before , breaks inline display of 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 inline radio buttons in .form-horizontal formular.

fiddle: http://www.bootply.com/f57p30eyo2

this looks issue how you've set grid system on containers rather list. have "col-sm-4" on containing div. if change "col-sm-12" displays text input field inline.

the element doesn't fit inline others part of such narrow column. example, applying "width: 50px" text field places inline.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -