An invalid form control with name='xxx' is not focusable
来源:互联网 发布:淘宝保丽净价格 编辑:程序博客网 时间:2024/05/29 10:31
【相关的表单提交,不能跳转。】
有些表单,再输入表单数据之后,点击提交按钮不能提交,页面不能跳转,谷歌浏览器下会报标题的错误。
如图:
该问题起因:
当空字段具有所需的属性,并尝试发送的形式,一些浏览器如Chrome或Firefox让场上的焦点,并采取一个消息在一个特殊的工具提示。
当需要的领域会出现此错误是隐藏或不可见的,因此无法发出信号并报告是必需的。
说白了就是,你的表单的数据有的字段不满足这个字段的Require,但是呢,后台的js验证似乎没能做的那么好,不能给有效的提示。
都是碰巧给表单页面做二次开发,出现了这个问题。
当时的表单,一个号码是input元素,有两个HTML5的验证,一个是“minLength”(现在是1,是被修改过的,之前是10),一个是“maxLength”(也是10),然而后台js的验证却没有对他们做的友好提示,导致测试,输入不是10位的号码,表单就是提交不了。
解决方案如下:
1. 检查表单的input字段,查看是否有html5的验证要求,比如上面的minlength,maxlength等
2. 删除或修改所需要的属性,这个地方我觉得,完全可以采用js验证或者不修改这个属性,至少填写不规范,js要提示用户对吧。
翻墙查看了,有的在说什么谷歌浏览器的兼容问题等等之类的,大体上都是这样解决,如有好的建议和方法,还望大伙多多指教啊。(第一次开博,加油!)
1 0
- An invalid form control with name='xxx' is not focusable
- An invalid form control with name='xxx' is not focusable
- JQuery EsayUI ComboBox 在chrome 报 An invalid form control with name='' is not focusable.
- Chrome浏览器,An invalid form control with name='' is not focusable. 问题处理
- An invalid form control with name='file[]' is not focusable.间接点击form表单的<input type="file">出现的问题
- An App ID with Identifier 'XXX.XXX.XXX’ is not available. Please enter a different string
- An App ID with identifier "xxxx.xxx.xxx" is not avalible 解决方法
- An App ID with Identifier 'com.XXX.XXX’ is not available. Please enter a differ
- IOS 开发 An App ID with Identifier 'xxx.xxx' is not available
- Bean property 'xxx' is not writable or has an invalid setter method
- Bean property 'xxx' is not writable or has an invalid setter method
- 使用spring注入时出现 XXX is not writable or has an invalid setter method
- 异常处理:Bean property 'XXX' is not writable or has an invalid setter method.
- Spring 配置文件报错:Bean property 'xxx' is not writable or has an invalid setter method
- Bean property 'xxx' is not writable or has an invalid setter method
- Bean property 'xxx' is not writable or has an invalid setter method
- An App ID with Identifier "xxx" is not available . Please enter a different string.解决方法
- 【iOS开发】An Apple ID with identifier "xxx"is not available. Please enter a different string.
- Fighting regressions with git bisect
- eclipse编码及创建servers问题
- [MSSQL]结果集直接运算
- android 屏幕长亮 和 解锁
- Java笔试题
- An invalid form control with name='xxx' is not focusable
- Android开发之四大组件
- SSDB:高性能数据库服务器
- 好的学习网页保存
- VRF技术
- (一)PHP学习笔记系列之(文件操作) //待完善
- 照顾自己,照顾别人
- C#如何使用异步编程
- C#学习1——指针的使用