Gcobani Mkontwana

Gcobani Mkontwana

  • 568
  • 1.9k
  • 406.7k

Corresponding input-group for input text?

Mar 17 2020 2:38 AM
Hi Team
 
I want to have a corresponding input text on my form to have a space between FirstName and LastName. Any one who can help me on this logic, or reimplemt mine i have below here.
  1. <hr />  
  2.        <form>  
  3.            <div class="input-group mb-2">  
  4.                <div class="input-group-prepend">  
  5.   
  6.                </div>  
  7.                <label for="firstName">Name:</label>  
  8.                <div class="input-group col-md-6 col-md-offset-6 col-sm-6 col-xs-6">  
  9.                    @Html.TextBoxFor(m => m.FirstName, new { @class = "form-control", type = "text", id = "firstname", autofocus = "autofocus", placeholder = "First Name", required = "required" })  
  10.                    <br />  
  11.                    @Html.TextBoxFor(m => m.LastName, new { @class = "form-control", type = "text", id = "lastname", autofocus = "autofocus", placeholder = "Last Name", required = "required" })  
  12.                </div>  
  13.            </div>  
  14.        </form>  
 

Answers (1)