Skip to content

Instantly share code, notes, and snippets.

@codephillip
Created March 10, 2017 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codephillip/b967308bd23786217ce3c076c825d6d9 to your computer and use it in GitHub Desktop.
Save codephillip/b967308bd23786217ce3c076c825d6d9 to your computer and use it in GitHub Desktop.
Angularjs1 select tag
<form name="form" ng-submit="couctrl.verifyCode()" role="form" >
<!--<select class="login-select" ng-model="couctrl.statusChoice" ng-change="couctrl.onValueChange()">-->
<!--<optgroup label="Status">-->
<!--<option value="12" selected="">Delivered</option>-->
<!--<option value="13">Not Delivered</option>-->
<!--</optgroup>-->
<!--</select>-->
<span>Status</span>
<select
ng-init="couctrl.statusChoice"
ng-model="couctrl.statusChoice"
ng-change="couctrl.onValueChange()"
ng-options="choice.id as choice.name for choice in couctrl.statusChoices">
</select>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment