At the top of my script I two variables holding two selectors:
var all_open = $('ul#festival_dates li.controls a:eq(0)');
var all_close = $('ul#festival_dates li.controls a:eq(1)');
I'm getting there with Jquery, I'm now at the point where I'm looking at my code and finding ways to write much more efficient scripts. One thing I noticed using YUI Compressor is that it said "[WARNING] Try to use a single 'var' statement per scope." and highlighted the two lines above, has anyone got any suggestions about this, or can explain a more technical description of what this means?
Any help would be much appreciated.
Thank you for your replie.