Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Can you help me make my javascript more efficient Re: Can you help me make my javascript more efficient

#106331
TheDoc
Member

I would also set up variables.

var filtersBox = $('.filtersbox'),
settingsBox = $('.settingsbox'),
settings = $('.settings'),
// etc.

Then use them like this:

settingsbox.slideUp('fast');