I try to replace a jquery chaned function with a var but it doesnt work (synthax error)
Triing something like this:
var foo = 'next()';
$(this).+foo+.show();
Is it possible somehow to realize that? foo is a var which changes to 'prev()' in another if condition
eval; don't. Instead, use conditionals.