Tab键无法使用HTML和javascript
我在使用HTML的Tab键输入中有一个问题。我在下面解释我的代码Tab键无法使用HTML和javascript,javascript,html,Javascript,Html,我在使用HTML的Tab键输入中有一个问题。我在下面解释我的代码 <div class="input-group bmargindiv1 col-md-12"> <span class="input-group-addon ndrftextwidth text-right" style="width:180px">User Name :</span> <div ng-class="{ 'myError': billdata.uname.$to
<div class="input-group bmargindiv1 col-md-12">
<span class="input-group-addon ndrftextwidth text-right" style="width:180px">User Name :</span>
<div ng-class="{ 'myError': billdata.uname.$touched && billdata.uname.$invalid }">
<input type="text" name="uname" id="uname" class="form-control" placeholder="add user Name" ng-model="login_name" ng-minlength="6" ng-keypress="clearField('uname');" >
</div>
</div>
<div class="help-block" ng-messages="billdata.uname.$error" ng-if="billdata.uname.$touched">
<p ng-message="minlength" style="color:#F00;">This field is too short.The min length of your user name should be 6.</p>
</div>
<div class="input-group bmargindiv1 col-md-12" ng-hide="showpass">
<span style="position:absolute; right:5px; margin-top:6px; top:0px;"><button class="btn btn-xs btn-success"ng-mousedown="hideShowPassword();" ng-mouseup="hideShowPassword();" ng-mouseleave="hidePassAfterLeave();" ><i class="fa fa-eye"></i></button></span>
<span class="input-group-addon ndrftextwidth text-right" style="width:180px">Password :</span>
<div ng-class="{ 'myError': billdata.pass.$touched && billdata.pass.$invalid }">
<input type="{{inputType}}" name="pass" id="passno" class="form-control" placeholder="password" ng-model="password" ng-minlength="8" ng-pattern="/^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[_!@#\$%\^&\*])(?=.{8,})/" ng-keypress="clearField('passno');" >
</div>
</div>
用户名:
此字段太短。用户名的最小长度应为6
密码:
在上面的代码中,假设用户的焦点首先出现在用户名
字段中。在这种情况下,当用户按tab键时,焦点不会移动到密码字段,而是两次按tab键时,焦点会移动到密码字段。在这里,我需要第一次按tab键时,焦点应该移动到密码字段。请帮助me.设置属性
tabindex="-1"
转到要跳过的帖子
检查这把小提琴:
设置属性
tabindex="-1"
转到要跳过的帖子
检查这把小提琴:
代码对我来说运行良好,您的javascript中可能有错误。你能给我们你的代码吗?代码对我来说很好,你的javascript可能有错误。你能告诉我们你的密码吗?