can someone please provide me the code to access the chose value of the datalist in the form
Have any HTML indicating what value you are attempting to retrieve? Or any code that isn’t doing what you want it to do?
var sel = document.getElementById("facultys");
var val = sel.options[sel.selectedIndex].value;
BTW, it should actually be “faculties”
1 Like