AngularJS Example:
HTML
<div ng-app="application" ng-controller="AppCtrl">
<select ng-model="selectedId" ng-options="x.id as x.name for x in options">
<option value="" selected disabled>Select an option</option>
</select>
<p>Selected option is <strong>{{selectedId}}</p>
</div>
CSS
</style> <!-- Ugly Hack due to jsFiddle issue: http://goo.gl/BUfGZ -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<style>
JavaScript
var application = angular.module('application', []);
application.controller('AppCtrl', function($scope) {
$scope.selectedId = null;
$scope.options = [
{id: 1, name: 'one'},
{id: 2, name: 'two'},
{id: 3, name: 'three'}
];
});