[jQuery] Re: Toggle Not Working

2009-06-30 Thread Jeferson Koslowski
Hi, When u use toggle like that, it already binds a click event on the matched elements. So, what will happen in your code is: 1. when the document is ready, it will bind a click event on 'a.toggle'; 2. when u click in 'a.toggle' it will bind a click event on '.portlet_content'; 3. when u click

[jQuery] Re: Toggle Not Working

2009-06-22 Thread Charlie
appears you are trying to use toggle with 2 functions the same way hover works with it's 'over' function and 'out' function toggle arguments are toggle(speed,[callback]) try this: $('a.toggle').click(function(){

[jQuery] Re: Toggle not working correctly

2007-06-22 Thread Ganeshji Marwaha
Try this script instead... obviously inside ur document.ready()... Lemme know how it goes $(.showTitle).click(function() { $(this).next(.showDescription).slideToggle(function() { $(this).is(:hidden) ? alert(close) : alert(open);