如何根据在第一个下拉列表和当前年份中选择的月份来绑定日期下拉列表? [英] How to bind date drop downlist according to month selected in first drop down and from the current year ?

查看:74
本文介绍了如何根据在第一个下拉列表和当前年份中选择的月份来绑定日期下拉列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii,

我想要做的是......我的页面中有两个下降...一个绑定到几个月..但第二个下降应该只显示那些可能在那个选定月份并从当年计算...





请建议我代码

Hii,
what i want to do is .. i have two drop downs in my page .. one is binded to months .. but the second drop downs should shows only those are possibly in that selected month and calculated from current year ...


please suggest me the code

推荐答案

您的问题不明确。

清楚地提出问题并在此提供示例代码,以便其他人可以帮助您。



无论如何,据我所知,你需要根据从其他下拉列表中选择的月份来填充月份的日期。



见这个链接,它可能是有用的



populate-days-dropdownlist-for-selected-month-and-year-using-javascript [ ^ ]



如何填写 - 下拉 - days-month.html [ ^ ]



Select-Day-Month-and-Year-Date-from-DropDownList-in-ASPNet.aspx [ ^ ]



希望这会有所帮助。
Your question is not clear.
Ask the question clearly and provide the sample code here so that only others can help you.

Anyway as i understand from the above is that u need to populate the days of the month based on the selected month from other dropdownlist right.

See this links, it may be useful

populate-days-dropdownlist-for-selected-month-and-year-using-javascript[^]

how-to-fill-dropdown-with-days-month.html[^]

Select-Day-Month-and-Year-Date-from-DropDownList-in-ASPNet.aspx[^]

Hope this helps.


这篇关于如何根据在第一个下拉列表和当前年份中选择的月份来绑定日期下拉列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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