Hi...
How to convert this javascript code into jQuery?
<script type="text/javascript" language="javascript">
function demoGridTable()
{
alert("Test");
var faq = new Array(3);
for (i=0; i <3; i++)
faq[i]=new Array(3);
faq[0][0]="ID";
faq[0][1]="Name";
faq[0][2]="Addresss";
faq[1][0]="1";
faq[1][1]="Brijesh";
faq[1][2]="Bapunager";
faq[2][0]="2";
faq[2][1]="JSK";
faq[2][2]="Navrangpura";
var tbl="<table><tr><th>ID</th><th>Name</th><th>Address</th></tr>";
for(i=1;i<3;i++)
{
tbl+="<tr>";
for(j=0;j<3;j++)
{
tbl+="<td>"+faq[i][j]+"</td>";
}
tbl+="</tr>";
}
tbl+="</table>";
document.getElementById('Demogrd').innerHTML=tbl;
}
</script>
Thanks & Regards,
Brijesh Mandaliya