how to append text box fields???plz tell me..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zaib_alone
Forum Newbie
Posts: 3
Joined: Sat Nov 26, 2011 11:41 am

how to append text box fields???plz tell me..

Post by zaib_alone »

I've facing a problem.
i want append the text fields with a button "add more fields" on the same page..
kindly tell me how can i do this..??
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: how to append text box fields???plz tell me..

Post by Celauran »

Use JavaScript's appendChild()
Gopesh
Forum Contributor
Posts: 143
Joined: Fri Dec 24, 2010 12:48 am
Location: India

Re: how to append text box fields???plz tell me..

Post by Gopesh »

Hi,hope that u need to create textbox dynamically on click on a button.For that use jquery or javascript. Retreiving the values of dynamically created textboxes use foreach in php code. Here is the link that will help u http://www.mkyong.com/jquery/how-to-add ... th-jquery/
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Re: how to append text box fields???plz tell me..

Post by mikeashfield »

or hide the forms by default, and then have JS unhide them.
Post Reply