adding text fields or combo box dynamically

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

Post Reply
snsanju
New php-forum User
New php-forum User
Posts: 42
Joined: Thu Aug 04, 2005 1:35 am
Location: Bangalore, India
Contact:

Sun Aug 14, 2005 11:23 pm

hi everyone,

i have created the page which contains two text box and one combo box by name name1, class1 and date1 respectively. after these fields in next line i have one link "add one more" , on clicking this link it has to create same two text box and one combo box exactly down to above two text box and one combo box with the names name2, class2 and date2 and it must also add the same link "add one more" to continue with the same process, like name3, class3 and date3

these all field are in same form.

and the code is like this

Code: Select all

<form>
<table>
<tr><td>textbox1</td><td>textbox2</td><td>combobox1</td>
</tr>
<tr><td colspan="3"> <a href="">add one more</a></td>
</tr>
</table>
</form>


can anybody provides me the solution
thanks

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2214
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Mon Aug 15, 2005 12:49 am

First of all: please use code tags when posting... your post has been edited..

Second of all its a javascript and we had the simmilar problem before. please search the forum (this one and javascript forum) for a simmilar problem as it has been discussed recently. it was about adding rows to a table.
Best Regards,
Alexej Kubarev
-------------------------------
Zend Certified Engineer
Image Image

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest