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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -