Trying to change an image on click and back again
问题 I am trying to toggle an image when a class is clicked. So far I have this (below) and it works to change my 'plus.png' to my 'minus.png' but I need it to change back to my 'plus.png' if the class is clicked again. I have the following jQuery: <script type="text/javascript"> $(document).ready(function () { $('label.tree-toggler, .yellow').click(function () { $(this).parent().children('.yellow').attr('src', 'img/minus.png'); }); }); </script> HTML <li><label class="tree-toggler nav-header"