Array sqlite cordova phonegap

0

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");
    });
    });

});   
    
asked by anonymous 26.01.2018 / 01:53

0 answers