Try something like:
$('div.toggle').hide();
$('ul.product-info li a').click(function(event) {
event.preventDefault();
$(this).next('div').slideToggle(200);
});
Here is the page about that in the jQuery documentation
More Related Contents:
- Not able to get Regular Expression in javascript
- Dynamically adding div on button click and changing Id of each?
- How to make page loaders/animations/transitions
- Get specific text from html tag jquery [duplicate]
- Smooth scrolling when clicking an anchor link
- How to open a Bootstrap modal window using jQuery?
- Trying to fire the onload event on script tag
- How to build PDF file from binary string returned from a web-service using javascript
- How to show Page Loading div until the page has finished loading?
- How do I link a JavaScript file to a HTML file?
- Image preloader javascript that supports events
- How can I remove a style added with .css() function?
- Alternative to jQuery’s .toggle() method that supports eventData?
- How to refresh page on back button click?
- Get Character value from KeyCode in JavaScript… then trim
- jQuery iframe load() event?
- Convert normal date to unix timestamp
- How to prevent browser to invoke basic auth popup and handle 401 error using Jquery?
- jQuery live scroll event on mobile (work around)
- Dollar sign before self declaring anonymous function in JavaScript?
- How to disable tooltip in the browser with jQuery?
- jQuery Pagination Plugin
- Scrape web pages in real time with Node.js
- Is setInterval() and setTimeout() bad things to do in modern jQuery animations?
- jQuery/Javascript to detect OS without a plugin?
- Jquery click event not firing on the element created dynamically using jquery
- Choppy/Laggy scroll event on Chrome and IE
- Fire oninput event with jQuery
- Queue AJAX calls
- What is the difference between $(document).ready(function() and $(function() ?