Wednesday, May 23, 2012

Defining JQuery Function

The two below functions work as scripted except for when i add the Function next () {;} and function prev () {'} around it to define the custom function.



What am I doing wrong here?



function next() {

$('#up').click(function() {
$("#two").prev().animate({height:'80%'}, 500);
});
;}


function prev() {
$('#down').click(function() {
$("#two").next().animate({height:'80%'}, 500);
});
;}




No comments:

Post a Comment