Here is my HTML code (which is i think where the problem is):
<form name="County" method= "post" action="post">
<select id= item.county_name name= item.county_name>
<option value="item.county_name"> County </option>
</select>
</form>
Here is my javascript:
$.ajax({
url:'http://107.170.75.124/courts/courts.json',
method: 'post'
})
.done (function(data){
data.forEach(function(item){
console.log (item.county_name);
$ ('select'). append ('<option value="' + item.county_name + '">' +
'</option>');
})
});
When I attempt to run it the drop box shows all 100 areas where they should be a county, but they are blank. So my guess is that there is something wrong with the HTML preventing it from being visible. All of the counties show up in my console