$('#Div1').slideDown('fast', function(){
$('#Div2').slideUp('fast');
});
Edit: Have you checked out the accordion plugin (if that’s what you’re trying to do)?
More Related Contents:
- PLEASE assist me.. RE: *FORM FIELDS* I want to Hide() my "type=text box" until the Other option is chosen in the dropdown option
- How to change the image while sharing the content to the social networks? [duplicate]
- How to distinguish between left and right mouse click with jQuery
- How do I prevent a parent’s onclick event from firing when a child anchor is clicked?
- jQuery get specific option tag text
- How to remove “disabled” attribute using jQuery?
- How to reload current page without losing any form data?
- Difference between jQuery `click`, `bind`, `live`, `delegate`, `trigger` and `on` functions (with an example)?
- Uncaught TypeError: Cannot read property ‘msie’ of undefined – jQuery tools
- Semicolon before self-invoking function? [duplicate]
- How do I synchronize the scroll position of two divs?
- JavaScript equivalent of jQuery’s extend method
- Show a progress bar for downloading files using XHR2/AJAX
- Use JSONP to load an html page
- How to get a count of all checked checkboxes on a page
- How to enable Bootstrap tooltip on disabled button?
- Load Image from javascript
- jquery select iframe children
- getElementById returning value only for first element [closed]
- In a Chrome Extension content script, must I wait for document.ready before processing the document?
- How to find the indexes of all occurrences of an element in array?
- Setting new value for an attribute using jQuery
- jQuery – get the first class only from a element
- jQuery Autocompletion with Eclipse Juno Java EE
- jQuery append and remove dynamic table row
- Cross Browser Selection Range Library?
- Is it a bad practice to use jQuery in Angular? [closed]
- How to make only some text in a text-box read-only while allowing the rest to be edited
- flot graph, use legend to turn on/off series
- trigger file upload dialog using javascript/jquery