tags:

views:

52

answers:

4

I just want to add a textbox in table at runtime using javascript. Anybody know...?

thanks.

A: 

You can use jQuery for this -> http://jquery.org/

Tobiask
A: 

This will insert a textarea to the first td of the first tr of the first table on a page (using jQuery). But i guess it will send you on the right way

$('table:first tr:first td:first').append('<textarea>my text</textarea>');
Thariama
A: 

Using jQuery you can do like this:

$('<input type="text" name="" id="" />').appendTo('#id_of_my_td');
Michael
A: 

Hope this source code will guide you through the point which you are looking for !

tableWidget = new YK.TableFactory(3,5,false, false);

textbox = new YK.Entry();

tableWidget.attach(
  textbox, 
  0, 1, 0, 1, 
  {align: YK.JUSTIFY_LEFT, fill: true}, 
  {align: YK.JUSTIFY_TOP, fill: true}, 
  1, 1

);

iSearch
it works, thanks for reply...