Event handler for a html5 color input element

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

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

\"screenshot

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-18 19:36

    What you are looking for is the input event.

    Your modified fiddle should now work in all (decent) browsers:

    $('#colorinput').on('input', function() { ... } )
    

提交回复
热议问题