AngularJS Example:
HTML
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div ng-app>
<div ng-controller="DemoCtrl">
<select ng-model="customerId" ng-options="item.id as item.name for item in content" ng-change="customerName = item.name">
</select>
<br/>
<input disabled="disabled" type="text" ng-model="customerId"/>
<input disabled="disabled" type="text" ng-model="customerName"/>
</div>
</div>
JavaScript
function DemoCtrl($scope) {
$scope.content = [
{
name: "Bireysel",
id: 1
},
{
name: "Kurumsal",
id: 2
},
{
name: "Bireysel & Kurumsal",
id: 3
}];
}