输入日期/时间...需要在两个单独的文本框中输入值 [英] Date/Time entry...needing the values in two separate text boxes

查看:82
本文介绍了输入日期/时间...需要在两个单独的文本框中输入值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

日期/时间输入...需要在两个单独的文本框中输入值.即我需要一个日期和另一个时间,这也是非常重要的,如果更改了时间,日期也应该更改...例如,某天是2012年3月16日,时间是晚上10点...那么如果将时间设置为上午12:00,则日期转换为第二天,即3月17日




我已经在日期时间条目中使用了以下内容

http://keith-wood.name/datetimeEntry.html [

Date/Time entry...needing the values in two separate text boxes..ie i need the date in one and the time in the other, also and this is very imp if the time is changed the date should also change...for example is the day is 16th march 2012 and the time is 10pm...then if the time is put to 12:00 am then the day shud change to the next day i.e 17th march




Ive used the following for the datetime entry

http://keith-wood.name/datetimeEntry.html[^]


Thanks for reading this question and for the help.

Dunstan

推荐答案

请始终提供一些代码,尽管据我所知,您可以使用jQuery change事件处理程序来完成所需的操作.更改事件处理程序的示例如下:

Please always provide some code, although as my perception, you can use jQuery change event handler to accomplish what you need. An example of change event handler is like:


(``#textboxDate'').change(function(){
\\ alter #textbox日期的日期
\\ alter #textbox时间时间
});
(''#textboxDate'').change(function(){
\\alter #textboxDate for date
\\alter #textboxTime for time
});


是否有人与Keith Wood的jquery datetimeEntry一起使用?需要一些帮助.

http://keith-wood.name/datetimeEntry.html [
Has any one worked with Keith Wood''s jquery datetimeEntry ?? Need some help with that.

http://keith-wood.name/datetimeEntry.html[^]


这篇关于输入日期/时间...需要在两个单独的文本框中输入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆