[Solved] Increase or decrease value using jquery


There are a couple of problems in your code. The major one being that you create a new date Object on every button click with the current date. That’s why you’re getting the same result every time.

If you just want to add or remove one day from the date you could do just this:

var currentDate = new Date();    
$('button').click(function() {
    var add = $(this).hasClass('increase_date') ? 1 : -1;
    currentDate.setDate(currentDate.getDate()+add);
    $('.display_date').html(currentDate);    
})

http://jsfiddle.net/3VQZy/

solved Increase or decrease value using jquery