Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js "></script>
</head>
<body>
<select id="demo"></select>
<script>
$(document).ready(function () {
$.get("TextFile.txt", function(data, status){
var myObj = $.parseJSON(data);
for (i in myObj.records) {
$("#demo").html($("#demo").html() + "<option>" + myObj.records[i].Tech + "</option>");
}
});
});
</script>
</body>
</html>
// this json code put into TextFile.txt"
{
"records": [
{
"Tech": "Angularjs",
"Side": "client"
},
{
"Tech": "Javascript",
"Side": "client"
},
{
"Tech": "PHP",
"Side": "server"
},
{
"Tech": "Node.js",
"Side": "server"
}
]
}
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K