Currently, I am developing an angularjs application and encountering difficulties setting the selected value in a select tag.
Please note that the 2nd option has the selected="selected"
I have tried various solutions such as setting the doc type to HTML5, adding autocomplete=off
, and giving a name to the form tag. However, none of these methods seem to be working. Do you have any suggestions on how to accomplish this?
You can view the code snippet here: https://jsfiddle.net/20cw7eqe/ where it works perfectly.
Unfortunately, it does not work on Firefox or Chrome. It is worth mentioning that I am using Bootstrap as well.
Any alternative solutions that you could recommend?