HTML5号码旋转框控件不会触发更改事件? [英] HTML5 number spinbox controls not triggering a change event?

查看:80
本文介绍了HTML5号码旋转框控件不会触发更改事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在使用jQuery触发对表单输入字段的重新计算。使用HTML5我们在Safari中获得了很好的旋转盒(至少在5.0.3 Mac上)。但是,使用spinbox控件更新字段似乎根本不会触发更改事件。这就像该领域尚未更新。这只是WebKit的疏忽吗?或者有办法吗?

We are currently using jQuery to trigger a recalculation on a form input field. Using HTML5 we get nice spinboxes in Safari (at least on 5.0.3 Mac). However updating the field with the spinbox controls doesn't seem to trigger a change event at all. It's like the field hasn't been updated. Is this just an oversight in WebKit? Or are there ways around this?

编辑:更改旋转框甚至不会触发输入事件。

Changing the spinbox doesn't even trigger an input event.

推荐答案

$ .Click()工作正常。如果您单击并按住,则直到您释放为止。

$.click() works fine. If you click and hold, it doesn't until you release.

这篇关于HTML5号码旋转框控件不会触发更改事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆