Is it possible to add a text like "Please choose..." and have it there before click (even after click), make it "disabled". It worked fine until I added the script. Or if there's a callback function I can add the Label value as the first option. Thoughts?
<option selected="selected" disabled="disabled">Please choose...</option>
Mhh this (disbale single options) should be possible without problems. Please take a look at the enabled_disabled.html demo!
Any feedback on this issue?
Thanks for following up Felix. I should have closed the ticket. I ended up using a different plugin as I needed to offer multi-select as well. Thanks for your prompt support.
I know this issue has been closed, but I am having the same issue. I know that you are able to disable single options, but it looks like issue that the original reporter is talking about still exists:
If the first option in the HTML select is disabled via the "disabled" attribute AND set to "selected", then the selectmenu widget will not display the selected option as the label.
<option disabled="disabled" selected="selected">Choose one...</option>
In raw HTML, this will display the select with the text "Choose one..." with that option disabled when it is open, but with the widget initialized, it will display with no label text. This feature is helpful when you want to use the option as a label or instructions for the selectmenu.
fixed: its now possible to have a disabled and selected option on ini…
…t, see #234
Now I get the problem. Fixed in latest trunk. Thanks for helping!
Thanks! That looks like it works. That was quick!