Bootstrap Forms -
i looking how bootstrap form looks like, , saw looks pretty this:
<div class="form-group"> <label for="inputa">some input:</label> <input type="text" name="input" id="inputa" class="form-control"> </div>
and it's bothers me for
attribute every time. so, question is, possible somethig this?:
<label class="form-group"> <span>some input:</span> <input type="text" name="input" id="inputa" class="form-control"> </label>
and there possible issues working way?
the for
toggles control form input. essentially, when click label, form element focused upon, or selected, depending on type of form element is. not have include for
on each label; however, common practice. not swap label
span
though, this...
<div class="form-group"> <label class="col-sm-2 control-label">your label</label> <div class="col-sm-10"> <input type="text" class="form-control" id="foo"> </div> </div>
Comments
Post a Comment