Possible Duplicate:
Difference in Months between two dates in JavaScript
<input type="text" id="month1" value="11"><input type="text" id="year1" value="1988"> <br />
<input type="text" id="month2" value="03"><input type="text" id="year2" value="2010"> <br />
<input type="submit" id="show">
$("#show").click(function(){
var m1 = $("#month1").val();
var m2 = $("#month2").val();
var y1 = $("#year1").val();
var y2 = $("#year2").val();
var result = 'result';
})
LIVE: http://jsfiddle.net/4XJUp/
How is the best and simply way for count month between two dates in jQuery in this example?