jcadima
4/26/2017 - 4:46 PM

On Click Current item

On Click Current item



jQuery('.menuheader').click(function () {
      console.log('Clicked');

jQuery('.menuheader').css('background', 'url(/expand.png) no-repeat scroll right #F5F5F5') ;

// this refers to the current clicked element, all others remain unchanged
jQuery(this).css('background', 'url(/collapse.png) no-repeat scroll right #F5F5F5') ;



});