View Full Version : insert row table

06-22-2010, 04:37 AM

I am working on adding a datepicker on each row of the table grid using javascript .

I have a done like below.

oCell.innerHTML = "<input type='text' name='DateTime' id='DateTime' size='18' class='maincontent1'>
<a href=javascript:NewCssCal('DateTime','yyyymmdd','arrow',true,24,false);><img src='images/cal.gif' width='16' height='16' border='0'alt='Pick a date'> </a> ";

oCell = newRow.insertCell();

Is this correct way?

with the above code , cursor control pointing to previous textbox not the current one.

can anyone help me?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum