Event bubbling and the onblur event

后端 未结 5 1308
生来不讨喜
生来不讨喜 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-06 00:24

    ppk has a technique for this, including the necessary workarounds for IE: http://www.quirksmode.org/blog/archives/2008/04/delegating_the.html

提交回复
热议问题