How to Add New TextBox by clicking a button?

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
nishmgopal
Forum Contributor
Posts: 101
Joined: Tue Mar 03, 2009 9:38 am

How to Add New TextBox by clicking a button?

Post by nishmgopal »

Hi Guys

I am trying to include a button in my form, where by if you click it, a new textbox is added where the user can enter more info.

Thanks
User avatar
highjo
Forum Contributor
Posts: 118
Joined: Tue Oct 24, 2006 1:07 pm

Re: How to Add New TextBox by clicking a button?

Post by highjo »

you can do it in two ways.either you've originally hid the textbox and change its css display property on click event of your button or you use w3school to find out how to do it.You can also decided to use one of the javascript like jquery , dojo or extjs to do it.i'ld suggest you start with the easiest and the one i prefer for its simplicity:jquery
Post Reply