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="" 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.15/angular.min.js"></script>
<style>

JavaScript

var application = angular.module('application', []);

application.controller('AppCtrl', function($scope) {
    $scope.selectedId = 1;
    $scope.options = [
        {id: 1, name: 'one'},
        {id: 2, name: 'two'},
        {id: 3, name: 'three'}
    ];
});