Answered
HTML5 Canvas - Get selected option label for combobox
How do I get the selected option label for combobox?
function assignDataF(data) {
for (var i = 0; i < data.length; i++) {
$('#patients_cbx').append($("<option/>").attr("value", data[i]).text(data[i].label));
}
}
//Select patient from ComboBox list
$("#dom_overlay_container").on("change", "#patients_cbx", showPatientDetails.bind(this));
function showPatientDetails(evt) {
root.patientDetailsModal.visibility = true;
root.patientDetailsModal.patient_name.text = evt.target.innerText;
}Tried with evt.target.innerText but it just gives me all the labels in the combobox...
