JQUERY Toggle Div Issue

Posted on 2014-02-07
Last Modified: 2014-02-07
I am trying to toggle one div, but the collapse keeps coming up short due to a div to the right. How do I get the div to collapse all the way to the top. I am using the gumby framework as well. So what I'm looking for is for the "1. Shipping Information" div to collapse up and the "2. Billing Information" div below it to rise up to be just underneath the collapsed "Shipping Information" div, but the "Checkout Progress" div to the right gets in the way and the "2. Billing Information" stops right below that. Here is the general code:

<div class="row">
    	<div class="nine columns">
    		<div id="shipdiv">
    			Shipping Information Content
    	<div class="three columns">
    			Checkout Progress Content
    <div class="row">
    	<div class="nine columns">
    		<div id="billdiv">
    			Billing Information Content
    	<div class="three columns">
    			Blank Content

Open in new window

    $( "#hide-ship" ).click(function() {
    $( "#shipdiv" ).toggle( "slow" );
    $( "#billdiv" ).toggle( "slow" );


Open in new window

Example Image
Question by:seeraig
LVL 58

Accepted Solution

Gary earned 500 total points
ID: 39843475
Because you have the shipping and side bar in their own row and the billing in another row.
Just move the billing bits inside the same row under shipping.;

Author Closing Comment

ID: 39843556
thanks, that worked, simple, just missed it.

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How can I do a Select All on this page? 8 43
Javascript Hashmap output 8 54
PHP Form Calculate Total Price 10 40
jqury 17 28
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
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)
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now