javascript - Angular and Chosen Plugin -


i used chosen plugin in angular snippet of code

<select ng-model="vendor_value" ng-options="vendor.text vendor in vendors" ui-jq="chosen" ui-options="{width: 300px}"></select> 

then rendered in browser

<select ng-model="category_value" ng-options="category.text category in categories" style="border-color: red; display: none;" ui-jq="chosen" ui-options="{width: '300px', no_results_text: 'press enter add ', placeholder_text_single: '' }" class="ng-pristine ng-untouched ng-valid">     <option value="?" selected="selected" label=""></option>     <option value="0" label="games">games</option>     <option value="1" label="baby">baby</option>     <option value="2" label="shoes">shoes</option> </select> <div class="chosen-container chosen-container-single" style="width: 300px;" title="">     <a class="chosen-single chosen-default" tabindex="-1"> <----- want insert class after form submitted in angular controller         <span>select option</span>     </a>     <div class="chosen-drop">         <div class="chosen-search">             <input type="text" autocomplete="off">         </div>         <ul class="chosen-results"></ul>     </div> </div> 

in line

<a class="chosen-single chosen-default" tabindex="-1"> 

i want insert class after form submitted. how can insert class in dynamically created html line chosen plugin in angular controller?


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -