我的任务是安排页面中的文本框。这是我的html代码。此代码是自动生成的。我想通过创建来默认安排文本框的位置。
@model Resume.Models.Resume
@{
ViewBag.Title = "Create";
}
<h2>Create</h2>
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Resume</legend>
<div class="editor-label">
@Html.LabelFor(model => model.FirstName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.FirstName)
@Html.ValidationMessageFor(model => model.FirstName)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.LastName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.LastName)
@Html.ValidationMessageFor(model => model.LastName)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Gender)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Gender)
@Html.ValidationMessageFor(model => model.Gender)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Address)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Address)
@Html.ValidationMessageFor(model => model.Address)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Phone)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Phone)
@Html.ValidationMessageFor(model => model.Phone)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Email)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Email)
@Html.ValidationMessageFor(model => model.Email)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.DateOfBirth)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.DateOfBirth)
@Html.ValidationMessageFor(model => model.DateOfBirth)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Age)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Age)
@Html.ValidationMessageFor(model => model.Age)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.City)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.City)
@Html.ValidationMessageFor(model => model.City)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Country)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Country)
@Html.ValidationMessageFor(model => model.Country)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.HighSchool)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.HighSchool)
@Html.ValidationMessageFor(model => model.HighSchool)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.CollegePer)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.CollegePer)
@Html.ValidationMessageFor(model => model.CollegePer)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Qualification)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Qualification)
@Html.ValidationMessageFor(model => model.Qualification)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.DegreeYearOfPassout)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.DegreeYearOfPassout)
@Html.ValidationMessageFor(model => model.DegreeYearOfPassout)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.PreviousCompanyName)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.PreviousCompanyName)
@Html.ValidationMessageFor(model => model.PreviousCompanyName)
</div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}
我怎样才能做到这一点?是否有任何 jquery 插件或任何 jquery 代码?