auto tab with exception
auto tab with exception
我有一个主要输入个位数的表单。我想自动标签到每个输入字段,但是,有时,有一个两位数的数字的需要。两位数字总是以"1"开头。所以我想在除1以外的所有个位数上自动选项卡,如果输入1,则自动选项卡被禁用,以便可以输入第二个数字。我将手动tab到下一个字段,然后自动选项卡将恢复。
我可以找到很多自动选项卡的代码,但没有一个带有这种类型的异常。I am new to javascript.
像这样的东西应该让你开始。http://jsfiddle.net/eH4K7/(仅测试Chrome)
然而,你需要对用户输入做更多的检查,以获得你想要的效果。
相关文章:
- Fighting with FRP
- issue with FB.Event.subscribe
- geolocation-marker.js conflict with markerclusterer.js
- Angular 2.0 with JavaScript or TypeScript?
- 为什么不推荐使用“with”?是否有更好或其他方法可以“下降”到对象的命名空间
- WebComponentsJS with IE10
- 指令的模板必须只有一个根元素:With restrict E&替换true
- timeago.js with datatable and PHP
- Ajax and Json with Rails
- errors with Javascript try catch
- how to split a string with ','
- Understanding Javascript scope with "var that = this&qu
- Architecture for CPU intensive tasks with NodeJS & Socke
- How to declare a Map containing certain properties with flow
- 设置'这'在React with Inverse Data Flow中
- $("*") with exception?
- DOM Exception 11 InvalidStateError with webkitEnterFullscree
- auto tab with exception
- 未捕获的错误:InvalidStateError: DOM Exception 11 with AJAX
- SSE Uncaught Error: SECURITY_ERR: DOM Exception 18 with一个提供S