Page 1 of 1

Place Holder for Select UI component

Posted: Tue Feb 07, 2017 5:47 pm
by Deon

Hi
When i pull data from a db, the select component's height is decreased and no data is displayed. only when I click it to display the items of the db it shows the items.

How do I get a placeholder on the select item as well and not show it with decreased height. As you can see from the two Select elements below how "thin they are with no placeholder.
Image


Place Holder for Select UI component

Posted: Tue Feb 07, 2017 6:23 pm
by Serhii Kulibaba

Hello Deon,

Please set a default value after each mapping there. E.g. set the first option selected.

preApperyio("mobileselectmenu_15").val($("[name=mobileselectmenu_15] option:first-child()").val()).trigger("change");/pre
here mobileselectmenu_15 - name of your select component