Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Load div on click of button

Posted on 2011-03-17
4
Medium Priority
?
632 Views
Last Modified: 2012-05-11
Hi,


I have a form like on image below, 30 columns, it takes some time to load and it's definitely too much time, and a user can use just 3 or 4 only, so there's no need to load all the columns.
formI want to show just 4 columns by default and display extra column if you want, on click of the button I think, but could be different way.
Important! I don't want to just show and hide, but actually load first 4 only first and on click load another one. So I need an effect like so:

4 columns displayed and button 'add new', when button clicked - new column appears, one click of 'add new' button and one column appears.

I think it's a jQuery job, but can't find anything like that on net.


Please help.
0
Comment
Question by:Zado
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
darren-w- earned 2000 total points
ID: 35157969
Try using use .clone() http://api.jquery.com/clone/.

Darren
0
 
LVL 8

Author Comment

by:Zado
ID: 35158352
0
 
LVL 8

Author Comment

by:Zado
ID: 35158355
Thanks for your help Darren
0
 
LVL 13

Expert Comment

by:darren-w-
ID: 35159335
Clone is the standard way to copy content in jquery, load is a Ajax method that is valid but inefficient, I feel I should get some credit
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question