/ til

TIL: You Can Use A Button As An Input Value For A From

Today I learned from my rad coworker @brettdewoody that you can use a <button> as an input value for a <form>.

Turns out there are a bunch of cool other attributes that a <button> can have. You can change the endpoint the form submits to with formaction and the request method (GET or POST) with formmethod.

Check them out for yourself!