Is it possible to automatically hide a <select> placeholder and instead show the selected value?
For instance: consider a <select> with some options with a placeholder "please select" and a few buttons that make a selection (<option selected="selected">). The problem is that when I select another value, the placeholder ("plase select") still shows and I'm unable to refresh it to show the selected value.
Tried $("#mySelect").trigger('create') to no avail.
Thanks in advance!
UPDATE: After some fiddling I found the answer to this problem: $("#mySelect").selectmenu().selectmenu("refresh"); Works like a charm :)