正如标题,如果我按我的输入形式,默认情况下未提交。我宁愿不添加js代码,但我无法解释,但我无法解释什么是错。有什么建议么?我也试图改变在输入我的按钮没有结果。如果我点击链接标志上的形式运作。
//而不是一个“#”显然是有另一个HTML页面的链接。如果我点击按钮的所有作品,我想,当用户插入他的电子邮件和他的密码,他就可以记录在按下Enter键
<div class="login-box" style="display:block">
<div class="form-header" style="padding-left:10px;padding-right:10px;">
<div class="content-form">
<form action="#" id="login-form" class="login-form smart-form client-form text-center">
<div class="login-input">
<input type="email" placeholder="Email Address" autocomplete='off' id="username" name="email" value="" tabindex="1" required><i class="fa fa-user fa-lg fa-fw" aria-hidden="true"></i>
<b class="tooltip tooltip-top-right"><i class="fa fa-user txt-color-teal"></i> Please enter
your email
address/username</b>
</div>
<div class="login-input" style="margin-top:20px;">
<input type="password" placeholder="Password" autocomplete='off' id="password" name="password" value="" tabindex="2">
<i class="fa-lg fa-fw fa fa-lock"></i>
<b class="tooltip tooltip-top-right"><i class="fa fa-lock txt-color-teal"></i> Enter your
password</b>
<div class="note"></div>
</div>
<div class="login-input hidden" style="margin-top:20px;text-align:right;">
<input class="checkbox form-checkbox" type="checkbox" name="remember" checked="checked" id="check" />
<label class="form-checkbox-label" for="check">Stay signed in</label>
</div>
<div style="margin-top:30px;">
<button id="loginButton" type="submit" class="btn btn-login" tabindex="3">login</button>
</div>
</form>
</div>
</div>
提交表单,你需要添加功能比发送到服务器,就像这样:
<form action="sendForm()" id="login-form"...>