Skip to content

Instantly share code, notes, and snippets.

@aloha1003
Created September 9, 2015 02:30
Show Gist options
  • Save aloha1003/08441aca361f63f58ee8 to your computer and use it in GitHub Desktop.
Save aloha1003/08441aca361f63f58ee8 to your computer and use it in GitHub Desktop.
<div class="areaA">
<select ng-model="areaACountry" ng-options="citys for (citys, areaACountry) in zipCodes" ></select>
<select ng-model="areaATown"
ng-options="areas for (areas, zipcode) in areaACountry" ></select>
</div>
<div class="areaB">
<input type="checkbox" id="areaBAsAreaA" ng-checked="areaBAsAreaA()" />與AreaA相同內容<br />
<select ng-model="areaBCountry" ng-options="citys for (citys, areaBCountry) in zipCodes" ></select>
<select ng-model="areaBTown"
ng-options="areas for (areas, zipcode) in areaBCountry" ></select>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment