Click here to Skip to main content
15,920,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here i have attached images

the 1st image , 1stimg.png , shows when i click on room box , it shows be a box ahead as shown

http://imageshack.com/a/img713/9260/h7zp.png[^]

and

in 2nd image , 2ndimg.png , when add room clicked ,it shows one div added as shown.

http://imageshack.com/a/img7/7995/n4uz.png[^]


How to do that..?? Is that a jquery , how to do this ????



regards
maulik shah</pre>
How to do that..?? Is that a jquery , how to do this ????



regards
maulik shah
Posted
Updated 9-Dec-13 21:03pm
v3

1 solution

Yes, that is jQuery.

On "Add room" click event, you just need to append 5 controls to the Div after the first set of controls for "Room 1".

5 controls are...
  • "Room 2" : A Label
  • "Adults()" : A Label
  • "Children" : A Label
  • DropDown (select box) for Adults
  • DropDown (select box) for Children
 
Share this answer
 
Comments
maulikshah1990 10-Dec-13 3:52am    
Hi Tadit,, thanks , but how..i wanted with example
Check Dynamically Add Input Fields To Form Using jQuery[^] for one example. You will get the idea.

Please accept this answer, if it has helped you in any way.
This will help others to find the answer in one go and you will also be awarded with some points for this action...

Thanks,
Tadit

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900