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

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -