twitter bootstrap 3 - Conditional showing html block - display in one row -


update based on @heblev:

enter image description here

i'm having little issue formating , trying show html block in 1 row

here html code

<form class="navbar-form" role="search">     <div class="input-group">       <input type="text" class="form-control" placeholder="search" name="empsrch" id="empsrch"/>       <div class="input-group-btn">          <button class="btn btn-default" type="submit" ng-click="open"><i class="glyphicon glyphicon-search"></i></button>       </div>    </div>     <div ng-show="selected == 'employer search'">       <div class="input-group">          <input type="text" class="form-control" placeholder="state" name="state" id="state" />       </div>       <div class="input-group">          <input type="text"   class="form-control" placeholder="city" name="city" id="city" />       </div>     </div>  </form> 

screenshot:

enter image description here

since you're using bootstrap,change code this..

<form action="" class="form-inline">     <div class="form-group">         <div class="input-group">               <input type="text" class="form-control" placeholder="search" name="empsrch" id="empsrch"/>               <div class="input-group-btn">                  <button class="btn btn-default" type="submit" ng-click="open"><i class="glyphicon glyphicon-search"></i></button>               </div>           </div>                 </div>            <div class="form-group" ng-show="selected == 'employer search'">           <div class="input-group">              <input type="text" class="form-control" placeholder="state" name="state" id="state" />           </div>           <div class="input-group">              <input type="text"   class="form-control" placeholder="city" name="city" id="city" />           </div>       </div> </form> 

this sample output http://goo.gl/pyklyr


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -