Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $99
Get for 99$

Drop Down selected value not shown, show only place holder default caption


Hello,

After setting value to dropdown like this $('#myDropDown').val(1);
The selected value is getting blue V symbol but the caption of dropdown is still shown the text of placeholder how can I show the selected text value instead of placeholder?

Thanks.


Text formatting options
Submit

Replies (3)


Hi,

If you are using Select2 custom dropdown control you should use it's API Method to set a value.

If you are using something else please provide us more info, including your Metronic version, build method(gulp, webpack) and which dropdown component are you using.

Regards.



Hi happy,

You are welcome!

If you need any further help please let us know.

Regards.


Your Support Matters!

We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.
Text formatting options
Submit
Text formatting options
Submit