I have a .csv list with names separated with semicolons: John Smith;Ola Nordmann;
etc, and I was wondering how I can read the file and then print out the names like this:
<select>
<option> John Smith
<option> Ola Nordmann
<option> etc
<\select>
It’s a local csv file and I have to use vanilla JavaScript.
My thought was that I could use a for-loop and somehow count the semicolons to determine the for-loops length, but I don’t really know how to do that. Nor do I know how get the data “out” of the file and “into” the option list.