Something about SELECT and RADIO

Need help with something HTML related, this is the place to ask.
Post Reply
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Something about SELECT and RADIO

Post by JelvinJS7 »

To my knowledge, there is no difference between the <select> input and the "radio" input type as for how it works. They appear to achieve the same goal.
So I'm asking, is there any difference between the tags other than how the user selects the option? And how do you determine which one you use?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Something about SELECT and RADIO

Post by jacek »

Personally it would depend on how many options there are.

Selecting your country from a list of radio buttons would look crazy so for that I would us ea select.

In that same way that selecting a gender from a select would look a little odd with so few options.

Not sure on the official opinion though.
Image
JelvinJS7
Posts: 341
Joined: Thu May 12, 2011 8:40 pm

Re: Something about SELECT and RADIO

Post by JelvinJS7 »

jacek wrote:Personally it would depend on how many options there are.
JelvinJS7 wrote:how do you determine...
I meant you guys.

So it is the same basically?

Would you say that if it's 2 options, then radio, 3-5 either, and 6+ select would be a good method?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Something about SELECT and RADIO

Post by jacek »

JelvinJS7 wrote:Would you say that if it's 2 options, then radio, 3-5 either, and 6+ select would be a good method?
Sounds about right to me. It depends on the layout of the page too I guess, if you have a form with a huge list of selects and then a gender option, it might look weird to use a radio for that.
Image
Post Reply