function preFill(voterID) {
$('#txtVoterID').val(voterID);
$('#dialog-voter-search').dialog("close");
$.post("engine.php", {act: 2, vi: voterID}, function(data) {
$('#txtNameF').val(TitleCase(data.FIRST_NAME));
$('#txtNameM').val(TitleCase(data.MIDDLE_NAME));
$('#txtNameL').val(TitleCase(data.LAST_NAME));
$('#txtNameS').val(TitleCase(data.NAME_SUFFIX));
sMessage('#s1message',"Data prefilled");
}, "json");
}
I am getting no console errors using Chrome, and as I said, it works find when loaded to the same browser from production. Any thoughts on what is causing this? Thanks!