JS Party: JavaScript, CSS, Web Development cover image

A very !important lesson

JS Party: JavaScript, CSS, Web Development

CHAPTER

The Name Attribute on a Radio Button

The name attribute on the input, because people use JavaScript, and I'm going to say use Ajax, but basically use HTTP request to send back and forth data. A lot of people don't know that inputs should usually have name value peers. Every single radio button should have a name, and every single radio Button should have a value. So why reinvent that with a component? Because you're not going to get all of the features that come natively with a radio button.

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner