0 votes
in JQuery by
Define slideToggle() effect?

1 Answer

0 votes
by
It is used to toggle between sliding up and sliding down for the selected elements.

<h2>This is a paragraph.</h2>

<button>show me toggle</button>

<script>

$(document).ready(function(){

$("button").click(function(){

$("h2").slideToggle();

});

});

</script>
...