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
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(){
$(this).parents('div.portlet').children('.po
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");
3 matches
Mail list logo