angularjs - How to change css class according to the name attribute of a parent -


i need css issue. must change class on 1 element created : https://angular-ui.github.io/bootstrap/#/dropdown

the element encapsulated in generated code can't give id or else. attribute can access in div (name="organizationtypes") contains element need change.

the generated code looks this:

<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown ng-pristine ng-valid ng-isolate-scope ng-not-empty open ng-touched"  style="width: 100%; display: inline-block;" tabindex="0" uib-dropdown="" auto-close="outsideclick"  name="organizationtypes" items="vm.availableorganizationtypes" ng-model="vm.data.organizationtypes" type="text"> <ul class="ui-select-match form-control dropdown-toggle" uib-dropdown-toggle="" style="margin-bottom:2px;height:auto!important;min-height:31px;" aria-haspopup="true" aria-expanded="true">     <!-- ngrepeat: selected in vm.selectedlabel track selected.path --> </ul>  <!-- need modify dropdown-menu ul --> <ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" style="width:inherit; overflow:auto; max-height:20em" ng-click="$event.stoppropagation()">     <li class="ui-select-choices-group">         <div>             ...         </div>     </li> </ul> </div> 

the boostrap class defines :

.dropdown-menu { position: absolute; top: 100%; left: 0; z-index: 1000; display: none; min-width: 160px; padding: 5px 0; margin: 2px 0 0; font-size: 14px; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border: 1px solid #ccc; border: 1px solid rgba(0,0,0,.15); border-radius: 4px; -webkit-box-shadow: 0 6px 12px rgba(0,0,0,.175); box-shadow: 0 6px 12px rgba(0,0,0,.175); } 

and need change position relative.

how can achieve this ? need redefine new dropdown-menu don't know how selector. i'm absolutely incompetent in css :(

thanks in advance !

maybe i'm misunderstanding question, think looking [attribute=value] selector.

here can find examples css [attribute=value] selector

in case, think should build selector this:

div[name=organizationtypes] .dropdown-menu {    position: relative; } 

tell if looking =)


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -