I have a department.txt file that contains departments:
Chemistry
Physics
Mathematics
Other
and i want to create a drop down list <select> by importing this file in my HTML. How can i do it using Javascript?
There are 50+ departments in file , so creating <option> for every department will not be a good idea.