I’ve seen <button type=”button”> before but thought that you never need it. Turns out you do… If you have a button on the page then by default its type is button. But if that button is inside a form then by default its type is submit. It makes sense....
This week I learnt...
Front End Developer. I like problem solving and making things pretty. I also like red.
Markdown supported · ⌘↵ to post
No responses yet.