myTable= "<table id='name' bgcolor='#00cafe' border=1 >"; myTable+="<tr><td id='r'></td><td id='r1'></td></tr>"; //myTable.fontcolor('#00cafe;'); for (var i = 0; i < result.rows.length; i++) { var row = result.rows.item(i); var name= row.Cust_name; var userid=row.UserId; var myArray = new Array(); myArray[i]=name; myTable+="<tr><td id='r' style='width: 600px; padding: 0.5em 0 0.1em 0; text-align: left;'>" + myArray[i] + "</td><td id='r1'><div class='progress'><div class='progress-bar' style='width:0%'></td></tr>"; // td.innerHTML= '<div class="progress"><div class="progress-bar" style="width:14%">'; } myTable += "</table>"; document.getElementById('myDynamicTable').innerHTML=myTable;
db1=openDatabase(id, version, displayName,maxSize); db1.transaction(function(transaction) { var query='SELECT * FROM customer ORDER BY Cust_name'; transaction.executeSql(query , [], function(transaction, result) { le=result.rows.length; if (le != 0) { for (var i = 0; i < result.rows.length; i++) { var row = result.rows.item(i); var name= row.Cust_name; var myArray = new Array(); myArray[i]=name; jQuery('.sorting').each(function() { jQuery('.r').html(myArray[i]); }); } } }); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)