Hi,
I start a new developpemnt with jQuery Mobile.
In my code i have a list view and i want to fill it with the answer of an ajax query.
My sample code look like this :- <ul data-role="listview"
data-divider-theme="b"
data-inset="false"
data-filter="true"
data-autodividers="false"
id="indicators-listview"
>
// the following should be dynamic
<li data-theme="a"
data-icon="false"
>
<a href="#page1"
data-transition="none"
data-iconpos="notext"
data-mini="true"
>
Indicator-1
</a>
</li>
I have in my code a function in charge to fill this listview.- $.post("query/indicators/",enveloppe,function(data){answer
var answer ;
eval("answer="+data);
debugger;
var list = $("#indicators-listview");
for(var i=0; i<answer.list.length ; i++){
var currentIndicator = answer.list[i];
}
var li = $("li");
// list.add(li);
$.mobile.changePage("#indicators",{ transition: "slide"});
});
Then i don't know the equivalent of dom function for createElement appendChild ...all the necessary tools to transform my answer in a beautiful listview

How can'i append this "li" to the listview ?
Regard's
D.D.