Label & Select

Today I discovered another web quirk: if you associate a label to a select, in IE (up to at least version 6.0.2900), the click on the label selects also the first element of the list.

This is dangerous for the end user because he could inadvertently change a value he already selected.

For the moment I used a quick&dirty workaround replacing the label with a span and associating an onclick event to give focus to the select.

I’m looking for a more elegant solution that possibly does not involve javascript.

Explore posts in the same categories: web design

Comment:

You must be logged in to post a comment.