Solved

Load div on click of button

Posted on 2011-03-17
4
613 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
darren-w- earned 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

749 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