Event bubbling and the onblur event

后端 未结 5 1336
生来不讨喜
生来不讨喜 2021-01-05 23:24

I\'m writing a form validation script and would like to validate a given field when its onblur event fires. I would also like to use event bubbling so i don\'t have to attac

5条回答
  •  灰色年华
    2021-01-06 00:23

    aa, you can simply add the onblur event on the form, and will call the validation every time you change focus on any of the elements inside it

提交回复
热议问题