Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Load div on click of button

Posted on 2011-03-17
4
Medium Priority
?
624 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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
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).

722 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