First I'm not sure this is the place to ask this question if not please direct it to its proper place.
The problem I am having is that I can get the first click function to work and have the html element change but I can't get the second click function to work and have the element change back. I was wondering how can I fix this problem?
Here is the code.
$(document).ready(function() {
$('.arrow').click(function(){
$(this).closest('li').find('ol:first').fadeToggle('fast', 'linear');
$(this).html('<span class="arrow-alt">↓</span>');
});
$('.arrow-alt').click(function(){
$(this).closest('li').find('ol:first').fadeToggle('fast', 'linear');
$(this).html('<span class="arrow">→</span>');
});
});
.on()and.delegate().