twitter bootstrap 3 - Conditional showing html block - display in one row -
update based on @heblev:
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:
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
Post a Comment