开发者

Math with jQuery /Javascript

开发者 https://www.devze.com 2023-01-12 01:29 出处:网络
I have dynamic input boxes with values of dates like this <input size=\"30\" id=\"date_one\" value=\"21/03/2011\" type=\"text\">

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

精彩评论

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