DatePicker事件问题 [英] DatePicker event issue

查看:63
本文介绍了DatePicker事件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有2个文本框和使用的日期选择器.单击时,每个文本框将显示当前和下个月的日历.现在,当用户在第一个日历中选择日期时,在文本框2中,必须在日历1中选择的日期增加3天如何为此事件编写一个事件.

 


(#date1").change(function() { var date = Date.parse(


this.val());


I have 2 TextBoxs and used datepickers .On clickin each TextBox current and next month calenders would be displayed.Now when the user selects the date in 1st calender ,in the TextBox2 3 days have to be added to the date selected in calender1.How to write an event for this

解决方案

Use the event on the textbox rather be considered with the calendar


("#date1").change( function() { var date = Date.parse(


this.val());


这篇关于DatePicker事件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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