Event handler for a html5 color input element

后端 未结 3 569
南方客
南方客 2020-12-18 19:11

Using the new input=\"color\" element within Chrome triggers a new popup dialog:

\"screenshot

3条回答
  •  情歌与酒
    2020-12-18 19:48

    You really want input event per HTML spec. Nothing guarantees change event to fire before the input element has lost focus.

    "The input event fires whenever the user has modified the data of the control. The change event fires when the value is committed, if that makes sense for the control, or else when the control loses focus. "

提交回复
热议问题