自动完成谷歌铬表格

时间:2016-04-15 11:35:17

标签: html google-chrome model-view-controller

<div class="col-sm-12 input-group">
@using (Html.BeginForm("_BookTime", "Home", FormMethod.Post))
{
    <div class="col-sm-12 FromFields">
        <b>Fulde navn:</b>
        @Html.TextBoxFor(m => m.Name, new { @class = "form-control", @required = true })
    </div>
    <div class="col-sm-12 FromFields">
        <b>Telefon:</b>
        @Html.TextBoxFor(m => m.Phone, new { @class = "form-control", @required = true, @type = "number" })
    </div>
    <div class="col-sm-12 FromFields">
        <b>Email:</b>
        @Html.TextBoxFor(m => m.Email, new { @class = "form-control", @required = true })
    </div>
    <div class="col-sm-12 FromFields">
        <b>Post NR:</b>
        @Html.TextBoxFor(m => m.Zip, new { @class = "form-control", @required = true, @type = "number" })
    </div>
    <div class="col-sm-12 FromFields">
        <b>By:</b>
        @Html.TextBoxFor(m => m.City, new { @class = "form-control", @required = true })
    </div>
    <div class="col-sm-12 FromFields">
        <b>Addresse:</b>
        @Html.TextBoxFor(m => m.Address, new { @class = "form-control", @required = true })
    </div>
    <div class="col-sm-12 FromFields">
        <b>Vælg pakke</b>
        <select class="form-control" name="Package" required>
            @Html.Action("_PackageList", "home")
        </select>
    </div>
    <hr />
    <button id="SendBtn" class="btn btn-success">Send</button>
}

为什么google chrome auto不会完成以下公式?我试过给他们一个名字,那也没有用,所以我做错了什么?通常这是自动完成的,我从来没有做过 ANYTHING 表单,谷歌Chrome为我做了。我能做什么?感谢

1 个答案:

答案 0 :(得分:0)

您只需在表单中添加<form method="post" action="/form" autocomplete="off"> </form>

c.Remove(x => x.c)