Reputation: 101
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
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