html - Generate textbox with an addon button -


in asp.net mvc want generate kind of textbox:

http://getbootstrap.com/components/#input-groups-basic

http://screencast.com/t/u1wjajptdc76

the code using following:

 <div class="form-group">    @html.labelfor(model => model.userprincipalname, new { @class = "control-label col-md-2" })    <div class="col-md-10">      @html.editorfor(model => model.userprincipalname)      <span class="input-group-addon" id="basic-addon2">@html.label(xx.utils.settingshelper.domain)</span>     @html.validationmessagefor(model => model.userprincipalname)    </div>  </div> 

however behavior not

http://screencast.com/t/dv7vgtvakbsy

you using <div class="form-group"> must <div class="input-group">


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -