i am adding some li's with js to my webpage, for this li i use some jquery mobile stylesheets: for loading the js i use this code:
$(document).bind('pageshow', function () {
LoadLaadPalen.init();
}
then this code will be used:
var myData = [
{"Identifier":1,"Naam":"NOT Given","Adres":"Kopenhagen 9","Postcode":"0000LL","Plaats":"NOT Given","Longitude":"0.00000","Latitude":"0.00000"},
{"Identifier":2,"Naam":"NOT Given","Adres":"NOT Given 1","Postcode":"0000LL","Plaats":"Rotterdam","Longitude":"0.00000","Latitude":"0.00000"},
{"Identifier":3,"Naam":"NOT Given","Adres":"NOT Given 6","Postcode":"0000LL","Plaats":"Rotterdam","Longitude":"0.00000","Latitude":"0.00000"},
{"Identifier":4,"Naam":"NOT Given","Adres":"NOT Given 1","Postcode":"0000LL","Plaats":"Den Haag","Longitude":"0.00000","Latitude":"0.00000"},
{"Identifier":5,"Naam":"NOT Given","Adres":"NOT Given 218","Postcode":"0000LL","Plaats":"Zoetermeer","Longitude":"0.00000","Latitude":"0.00000"}
];
$('.result').append("moi");
var items = [];
$.each(myData, function(index, element) {
$('.greenfluxlist').append('<a href="#" rel="external"><li id="' + element.Identifier + '"><h3>' + element.Naam + '</h3><p>' + element.Adres + '</p></li></a>');
});
And this must be appended to this section:
<div data-role="content" data-theme="a">
<div id="laadpalen">
<p><strong>Op deze locaties zijn laadpunten aanwezig:</strong></p>
<div class="result">
<ul class="greenfluxlist" data-role="listview" data-inset="true"></ul>
</div>
</div>
</div>
But unfortunately I see no style. i only see the bullets with text and a blue standard link.. And also if I am going to check the source code, there aren't any html li code but on the webpage i see them...