Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<body>
<select id="demo"></select>
<script>
var myObj, i, x = "";
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
myObj = JSON.parse(this.responseText);
for (i in myObj) {
document.getElementById("demo").innerHTML = document.getElementById("demo").innerHTML + "<option>" + myObj[i];
}
}
};
xmlhttp.open("GET", "TextFile.txt", true);
xmlhttp.send();
</script>
</body>
</html>
// this json code put into TextFile.txt
[ "Javascript", "jQuery", "Node.js", "Angularjs" ]
The most helpful JAVASCRIPT solutions