Someone could help me to modify this code, I wanted to make an HTML list (UL LI) with select array. The code is this:
$("#funcao_ler").click(function(){
myDB.transaction(function(tx) {
tx.executeSql('SELECT * FROM phonegap_pro', [], function(tx, res) {
var len = res.rows.length;
for (var i = 0; i < len; i++) {
alert(res.rows.item(i).title);
alert(res.rows.item(i).desc);
}
}, function(e) {
alert("some error getting");
});
});
});