javascript - ng-repeat on select is overriding content -


i have code:

<select>     <div class="arrow-up"></div>     <option data-ng-repeat="x in y">{{x}}</option> </select> 

the output hides arrow div like:

<select class="ng-pristine ng-valid">     <option data-ng-repeat="x in y">x1</option>     <option data-ng-repeat="x in y">x2</option> </select> 

is built-in operation or missing something? thanks

according official documentation of <option> can declare <option> , <optgroup> tags inside it. quote docs.

html select <select> element

permitted content: 0 or more <option> or <optgroup> elements.


Comments

Popular posts from this blog

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -