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>
elementpermitted content: 0 or more
<option>
or<optgroup>
elements.
Comments
Post a Comment