Hi Rob, just use css. There is a selector for the first item (class:first- child). When css3 is acceptable to you, more selectors are available.
An other way may be to give the first <option> a dedicated class. However, GWT does not make it easy to do so. Stefan Bachert http://gwtworld.de On 28 Mai, 20:24, Rob Tanner <[email protected]> wrote: > I'm rewriting some existing apps using GWT and I've come across a GUI > issue. In many cases where I have used a select element as a pull > down menu (only 1 item visible at a time), I leave the first item > empty and disabled. The user has to choose a different option and he/ > she cannot go back to the empty element. Using a ListBox, it's easy > enough to leave the first element (index 0) empty. But how do I > disable that first element so that it can't be selected? > > Thanks, > Rob -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
