Hye,
i  put an image (glyphicons) in a span at the right of the header and i 
want to change it when the panel change.

I make this code :

>     $(document).on('click', '#menu .accordion-toggle', function (e) {
>
>       var $this    = $(this);
>
>       var chevrons  = $this.parents().find('#menu span');
>
>       var content  = $this.attr('href');
>
>       var chevron  = $this.parent('.panel-title').find('h3 span');
>
>       
>> $(chevrons).removeClass('chevron-down').addClass('chevron-right').addClass('grey');
>
>       $(chevron).hasClass('chevron-right') ? 
>> $(chevron).addClass('chevron-down').removeClass('chevron-right').removeClass('grey'):$(chevron).removeClass('chevron-down').addClass('chevron-right').addClass('grey');
>
>       e.preventDefault();      
>
>     })
>
>
I change all to grey but when impossible to make the open panel with the 
active chevron 

-- 
You received this message because you are subscribed to the Google Groups 
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to