I get data with this:
$.getJSON("Personen.php", function(data) {
$.each(data, function(key, value) {
$("<option value='" + key + "'>" + value.Person + "</option>").appendTo("#projekt_autor");
});
});
and append it to a select menu:
<div data-role="fieldcontain">
<label for="projekt_autor" class="select">Autor:</label>
<select name="projekt_autor" id="projekt_autor">
<option>Autor wählen...</option>
</select>
</div>
Firebug shows the data to be in the page:
<label for="projekt_autor" class="select ui-select">Autor:</label>
<div class="ui-select">
<a class="ui-btn ui-btn-icon-right ui-btn-corner-all ui-shadow ui-btn-up-c" data-theme="c" aria-haspopup="true" role="button" href="#">
<span class="ui-btn-inner ui-btn-corner-all">
<span class="ui-btn-text">Autor wählen...</span>
<span class="ui-icon ui-icon-arrow-d ui-icon-shadow"></span></span></a>
<select tabindex="-1" name="projekt_autor" id="projekt_autor">
<option>Autor wählen...</option>
<option value="0">Affolter Theo, -</option>
<option value="1">AGEO -, -</option>
<option value="2">BACHMANN P., -</option>
etc.
</select></div>
But when I click the select menu, only the null option is shown (<option>Autor wählen...</option>).
How can I get all the data to show?
Here's the page: http://evab.barbalex.ch/Projekt.html
Very grateful for help!
here's the script: Projekt.txt