function populateCanswersSelect(evt) { var fname = $('#cquestions').val(); // empty the canswers Select $('#canswers option').remove(); var Keys = new Array(); // store the indices in the Fieldnames array (to find codes and answers) where fname is found for (var i=0;i