help nedded
function qdisplay(tx,results){
var len = results.rows.length;
var sheet = document.createElement('style')
sheet.innerHTML = "div {border: 2 solid black;}";
document.body.appendChild(sheet);
var qq="<table> <thead border = 3; cellspasing = 2; cellpading = 2> <tbody border = 2 > "
var q1 = "";
for(var i=0; i<len; i++)
{
var Id1 = results.rows.item(i).Id;
var Name1 = results.rows.item(i).Name;
var Age1 = results.rows.item(i).Age;
q1 = "<tr onclick= updateForm("+Id1+",'"+Name1+"',"+Age1+");>";
q1= q1+"<td>"+ results.rows.item(i).Id + "</td>";
q1= q1+"<td>"+ results.rows.item(i).Name + "</td>";
q1= q1+"<td>"+results.rows.item(i).Age+ "</td>";
q1=q1+"</tr>";
qq= qq+q1;
}
qq=qq+" </tbody></thead><table>";
document.getElementById('sample').innerHTML = qq;
}
guys iam budding developer
i nedd an help in above code ..!??
iam applying border style for the above dynamic table..! but iam not able to do it so pls help me with the code..!!!!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Bookmarks