You could toggle classes making sure each class is styled with the
appropriate image, use the css() method to change the background /
background-image property or, if your working with an img element, you
can use the attr() method to change the images "src".

On Oct 2, 12:26 pm, Gremlyn1 <greml...@gmail.com> wrote:
> I have some divs I am toggling and there is a little + sign image I
> want to change to a - sign image when the toggle event occurs, but
> can't quite figure it out. Here is the toggle code I have (taken from
> a helpful post on here):
>
> $j(document).ready(function() {
>     $j('#answerbox').hide();
>
>     $j('a.faq').click(function() {
>         var faq_id = $j(this).attr('id');
>         $j('#faq' + faq_id).slideToggle("fast");
>         return false;
>     });
>
> });
>
> The image is not contained within the <a> tag, so I guess I need a
> separate function to callback.

Reply via email to