Note that there are some explanatory texts on larger screens.

plurals
  1. PObootstrap 3.0 multiple textbox in horizontal form issue
    primarykey
    data
    text
    <p>I am trying to display three small text box elements within horizontal form group class. using code</p> <pre><code>&lt;div class="form-group"&gt; &lt;label class="col-lg-3 control-label input-sm"&gt;Date of Birth:&lt;/label&gt; &lt;div class="col-lg-4"&gt; &lt;div class="row"&gt; &lt;div class="col-lg-4"&gt; &lt;input type="text" id="txt_month" name="txt_month" class="form-control input-sm" placeholder="MM" required maxlength="2" data-validation-required-message="Month is required" &gt; &lt;/div&gt; &lt;div class="col-lg-4"&gt; &lt;input type="text" id="txt_day" name="txt_day" class="form-control input-sm" placeholder="DD" required maxlength="2" data-validation-required-message="Day is required" &gt; &lt;/div&gt; &lt;div class="col-lg-4"&gt; &lt;input type="text" id="txt_year" name="txt_year" class="form-control input-sm" placeholder="YY" required maxlength="4" data-validation-required-message="Year is required" &gt; &lt;/div&gt; &lt;/div&gt; &lt;p class="help-block"&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>Result:</strong></p> <p><img src="https://i.stack.imgur.com/mvk9D.png" alt="enter image description here"></p> <p>Is there a better approach to display multiple text boxes near to each other. Rest of elements in form display horizontally.</p> <p><strong>Update#</strong></p> <p>After using inline form class with lots of other modifications, i got proper result. here is updated code.</p> <pre><code>&lt;div class="form-group"&gt; &lt;label class="col-lg-3 control-label input-sm"&gt;Date of Birth:&lt;/label&gt; &lt;div class="col-lg-7"&gt; &lt;div class="form-inline"&gt; &lt;div class="form-group "&gt; &lt;div class="col-lg-3"&gt; &lt;label class="sronly" for="txt_month"&gt;Enter Month&lt;/label&gt; &lt;input type="text" id="txt_month" name="txt_month" class="form-control input-sm" style="width:60px" placeholder="MM" required maxlength="2" data-validation-required-message="Month is required" &gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-lg-3"&gt; &lt;label class="sronly" for="txt_day"&gt;Enter Day&lt;/label&gt; &lt;input type="text" id="txt_day" name="txt_day" class="form-control input-sm" style="width:60px" placeholder="DD" required maxlength="2" data-validation-required-message="Day is required" &gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="form-group"&gt; &lt;div class="col-lg-3"&gt; &lt;label class="sronly" for="txt_year"&gt;Enter Year&lt;/label&gt; &lt;input type="text" id="txt_year" name="txt_year" class="form-control input-sm" style="width:60px" placeholder="YY" required maxlength="4" data-validation-required-message="Year is required" &gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;p class="help-block"&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>Correct Result:</strong></p> <p><img src="https://i.stack.imgur.com/zMuA2.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload