The functions below are working as expected, but when I try to include the custom functions next() and prev(), something is off with the script.
Where could the issue be stemming from?
function next() {
$('#up').click(function() {
$("#two").prev().animate({height:'80%'}, 500);
});
;}
function prev() {
$('#down').click(function() {
$("#two").next().animate({height:'80%'}, 500);
});
;}