@preya 1. You rather put HTML structure in JavaScript.😜
2. This is even valid inline JS in Vanilla HTML
3. Usually you would use named method as a callback instead of inline JS
@preya @denniskoch It's all what you're used to. I like html/css so I want that to be as vanilla as possible.
In your example I would definitely make a function so that the only clutter is one function name.