var next = false,
prev = false;
add = function(){
something will happen....
}
minus = function(){
something will happen....
}
elementNext.click(function(){
next = true;
});
elementPrev.click(function(){
Prev = true;
});
FinalEvent = function(){
if(next = true){
something will happen....
}else if(prev = true){
something will happen....
}
}
The problem is if i click the elementNext the 1st Condition in FinalEvent will happen but after i click the elementNext then click the elementPrev the 2nd Condition in FinalEvent doesn't happen, only 1st Condition will happen if i click the elementPrev....