DEV Community

Discussion on: On attributes for HTML form elements

Collapse
 
bernardbaker profile image
Bernard Baker

Another interesting aspect of form on[event] is onBlur and onInvalid when developing solutions for custom validation.

Collapse
 
huijing profile image
Chen Hui Jing

Indeed. And that's when additional functionality needs to be written. But if the use-case calls for something straightforward that the browser already provides, my opinion is to go for those first every time.

Collapse
 
bernardbaker profile image
Bernard Baker

I agree.