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..??
how to append text box fields???plz tell me..
Moderator: General Moderators
-
zaib_alone
- Forum Newbie
- Posts: 3
- Joined: Sat Nov 26, 2011 11:41 am
Re: how to append text box fields???plz tell me..
Use JavaScript's appendChild()
Re: how to append text box fields???plz tell me..
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..
or hide the forms by default, and then have JS unhide them.