Change jQuery element toggle

ijoylife

New Member
I have this example with a div which \[code\]show / hide\[/code\] from the top, but I need it from the bottom to the top, I was trying to change some code, but I couldn't, and I didn't find any example.\[code\]<script type="text/javascript">$(document).ready(function(){ $(".btn-slide").click(function(){ $("#panel").slideToggle("slow"); $(this).toggleClass("active"); return false; });});</script>\[/code\]Slide Panel \[code\]<div id="panel"> <!-- you can put content here --></div>\[/code\]
 
Back
Top