HTML5 required attribute, javascript on required found but not entered?

**Background info** I am trying to upgrade a custom CMS to support the HTML5 validation like required. When I have multiple languages for the same content, the form is put into tabs like (EN,ES,DE,etc). When a user clicks each tab they edit the contents of that language. (see image) **Problem** When a required field in ES is not filled in and the user currently has EN selected, nothing is highlighted since the ES is currently hidden. Can I catch the html5 built in validation and use jquery to change the tab or do I need to stick with the completely jquery based validation I had before (iterating through each input with required and checking $(this).val().length) ![example image to show what I mean][1] [1]: http://i.stack.imgur.com/MhrEt.png

以上就是HTML5 required attribute, javascript on required found but not entered?的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏