Hey @baz94
thanks for the comment. Yes, that is the beauty of it, it is HTML powered by interactivity that JavaScript provides.
In my opinion it is much more readable to have methods and directives present right in the HTML element. It gives your HTML elements reactivity and interactivity with much more readable and modern code than jQuery selectors and event handlers. That said it is the same problem but solution is done in a better way.
Perhaps I didn't quite get what you wanted to say with the 'out of the box' sentence but essentially you said that you can do pure HTML without any JS to handle for example onClick events out of the box? Please, I'd love to see that code.
I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
<details><summary>I am the title</summary><p>I am hidden until the title is clicked</p></details>
will do what you're using Javascript to achieve, won't it?
I mean, I'm sure there are a lot of things that this library does that you can't do in plain old HTML, but that's not one of them. Could you give an example where it does something you can't do in HTML?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey @baz94 thanks for the comment. Yes, that is the beauty of it, it is HTML powered by interactivity that JavaScript provides.
In my opinion it is much more readable to have methods and directives present right in the HTML element. It gives your HTML elements reactivity and interactivity with much more readable and modern code than jQuery selectors and event handlers. That said it is the same problem but solution is done in a better way.
Perhaps I didn't quite get what you wanted to say with the 'out of the box' sentence but essentially you said that you can do pure HTML without any JS to handle for example onClick events out of the box? Please, I'd love to see that code.
Once again thanks for the comment.
This HTML snippet:
will do what you're using Javascript to achieve, won't it?
I mean, I'm sure there are a lot of things that this library does that you can't do in plain old HTML, but that's not one of them. Could you give an example where it does something you can't do in HTML?