开发者

Math with jQuery /Javascript

I have dynamic input boxes with values of dates like this

<input size="30" id="date_one" value="21/03/2011" type="text">  

<input size="30" id="date_two" value="14/08/2010" type="text">  

I want to calculate difference between these two dates. i.e. How many days remaining ?

I开发者_如何学Gos it possible with jQuery to do this kind of math ? & How ?

Thanks

DEMO : JQuery

DEMO : Mootools


Have a look at:

Javascript Date difference as milliseconds, minutes, hours, days, weeks, months, or years

See the demo here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜