html - Create buttons dynamically in a div from a javascript function -


i have function returns data sql...

i need create buttons in div called

divresult

here function

function retrievedata(transaction, results) {    for(var = 0; < results.rows.length; i++) {         var data = results.rows.item(i)['nome'];         alert(data);     } } 

there answer on how create html elements using javascript here: creating dynamic button click event in javascript.

...i add simple comment don't have enough street cred yet.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -