News for hackers. Stuff that matters.
Re:Show HN: Help Me Decide Please by dheera on Friday April 24, 2020 @10:38PM (#22975084)
or better yet, don't even use <form> for things that don't submit a traditional old-style POST/GET to a server. if you're handling all your logic in javascript on the client side, OR doing everything with AJAJ [0], <form> is unnecessary and you can handle things with button.onClick -- you get to program it just like any other GUI.

[0] most people use JSON not XML so i prefer to call it AJAJ not AJAX

Re:Show HN: Help Me Decide Please by Chickenosaurus on Saturday April 25, 2020 @05:34AM (#22976896)
There are some downsides to that approach. The <form> element has semantic meaning which is lost if it's missing. Screen readers for blind people, browser features such as form auto-fill etc. might not work as expected without this semantic information.

Most web applications I have seen opt to use the form element. The default form browser behaviour can be suppressed easily.