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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -