Reputation: 357
My script is partially working, however the second click does not return the arrowheads (arrowIcon class) to their original state. What Am I missing;
$('.expand .show').click(function (){
$(this).parent().find('div.slide').slideToggle('fast');
$(this).find('.arrowIcon').slideDown(function (){
if ($(this).css('backgroundposition-y') < 0){
$(this).css({'background-position':'0px 0px'});
} else {
$(this).css({'background-position':'0px -14px'})
}
});
});
Any help is greatly appreciated..
Upvotes: 1
Views: 159
Reputation: 58
Isn't the CSS property background-position-y and not "backgroundposition-y" ?
Upvotes: 3