Dmitry
Dmitry

Reputation: 101

Jquery toggle. A similar example

Is there a ready-made options such functionality: Work example

Problem mainly in the correct positioning of the panel.

Or how to do this using query?

Maybe who knows ready examples? Unfortunately I'm not good in javascript :(

Upvotes: 0

Views: 66

Answers (1)

Dan Johnson
Dan Johnson

Reputation: 1482

jQuery comes with a slideToggle() function. For example,

$('.button').click(function(){
    $('.panel').slideToggle()
}

The .panel is the element which is shown when you click the button. http://api.jquery.com/slidetoggle

Upvotes: 1

Related Questions