jQuery
New Wave Javascript


discuss » Toggle


Posted: Tue Feb 14 15:42:16 EST 2006
From: Daniel Acuff <jojowebdev at gmail.com >

Multiple Toggle Sections.

I wanted to take my toggle world to the next level and create a couple
sections.

My instinct tells me I can create a couple more sets in the script to make
it happen.

<script type="text/javascript">
$(document).ready(function(){
$("#jQLink").toggle(function(){
$(this).html("&nbsp;+/-");
$("#jQNews").slideUp("slow");
},function(){
$(this).html("&nbsp;-/+");
$("#jQNews").slideDown("slow");
});

/* $("#jQJSNews").slideUp("slow");
$("#jQJSNews").slideUp("slow");
*/
/* $("#jQFAQ").slideUp("slow");
$("#jQFAQ").slideUp("slow");
*/

});
</script>

But Would there also have to be a new variable name for jQLink ?

Thanks. p.s. refering to my page.
http://www.jojowebdesign.com/skills/javascript/javascript_content.asp



--
Dan Acuff
Sr. Web Designer, Sr. Web Developer
www.jojowebdesign.com
203.733.6336
jojowebdev at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jquery.com/pipermail/discuss_jquery.com/attachments/20060214/cae5a3f6/attachment.htm