Page 1 of 1

disable first option in select component

Posted: Tue Sep 02, 2014 8:57 am
by Terry Gilliver

Often in a select menu, the first option is an instruction and not meant to be selected. For instance "Select Option". I want to make sure that the first option cannot be selected, how do I do that?


disable first option in select component

Posted: Tue Sep 02, 2014 9:48 am
by obullei

Hello!

Could you describe your issue with more details?


disable first option in select component

Posted: Tue Sep 02, 2014 10:30 am
by Terry Gilliver

The first option in the list is there for instruction to the user only, and is not a valid value. Therefore once the user has clicked on the select component, he should not be able to select the first option in the list. I hope that is clear.

fo instance in this jquery docs page: http://demos.jquerymobile.com/1.0a4/d...

where it says 'choose one', you can't select the option 'choose one' as it is for instruction only


disable first option in select component

Posted: Tue Sep 02, 2014 7:55 pm
by Evgene Karachevtsev

Hello Terry,

You should add in Properties - Options label "choose one" and keep the value of value blank. This line must be the first in the list.