Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Elements / Control Array

Status
Not open for further replies.

stemp1ar

Programmer
Aug 3, 2001
10
US
Hi and TIA,

I would like to add elements into a control array and need some help.

What I would like to do is:
On the page, when the (+) is clicked add an element to the control array

HTML Page Example below:

Before clicking the (+)
the first time:
+

After clicking the (+) the first time:
- Name1 Address1
+

After clicking the (+) a second time:

- Name1 Address1
- Name2 Address2
+

Also when clicking the (-) on a row that row would leave...

How do I create these elements dynamically so that everytime the plus is clicked a new element will be added or when the minus is clicked they are removed?
 
Oops sorry I would like to add that this is a table and I would like to add elements and remove elements...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top