Hi
I am using
Angularjs with Select as below
objArr=
[{"key":"A","key1":"B","value":"C"}
{"key":"D","key1":"E","value":"F"}
{"key":"G","key1":"H","value":"I"}
{"key":"J","key1":"K","value":"L"}];
<select chosen id="myModel" class="chosen-select" ng-model="myModel" ng-options="obj.key as obj.value for obj in objArr" ng-change="onChange()" required >
<option value=""></option>
</select>
1)Now On Change i get only key,where as i need complete object to manipulate other fields based on the key key1 and value,which i am unable to do
2)I am unable to set the default value into the combo
Please help me with the same
Thanks in Advance