Check out the issue on jsfiddle: http://jsfiddle.net/6bFsY/3/
After clicking "Add Users" and then clicking it again, all data in the extensions drop-down field disappears. This occurred following the addition of an email column. The email field gets pre-filled with whatever is selected in the extension dropdown (email is part of its object).
In addition, the extensions drop-down is unique per line; a section of the script instructs it to remove from the array if it exists on a previous line.
JS
window.usrViewModel = new function () {
// JavaScript code goes here
};
ko.applyBindings(usrViewModel, document.getElementById('usrForm'));
function Users(fname, lname, email, phone, access, usrExtVal, usrEmail) {
// Function implementation here
}
var ajaxResultExt = [{
// Data object entries here
}];
usrViewModel.extData(ajaxResultExt);
HTML
<fieldset title="Users">
<legend>2</legend>
<div>
<!-- HTML structure provided here -->
</div>
</fieldset>