如何在jsp中获得动态yyyymm下拉字段? [英] How to get dynamic yyyymm dropdown field in jsp?

查看:77
本文介绍了如何在jsp中获得动态yyyymm下拉字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有两个日期格式yyyymm(从日期到日期)

我有以下代码:

Hi,
I have two fields of date in this format yyyymm(from date and to date)
I have the following code:

展开 | 选择 | Wrap | 行号

推荐答案


任何人都可以提供帮助吗?
Can any one help?



有什么帮助?你没有告诉代码究竟做了什么,以及它与你的期望有什么不同。


无论如何,你应该看看错误控制台,检查是否有任何列出JS错误。

help with what? you didn?t tell what the code actually does and how it is different from what you expect.

anyways, you should take a look at the Error Console, to check whether there are any JS errors listed.


@ Dormilich ..谢谢回复..


它没有给出任何错误..它只显示年份......到当前年份..月份根本没有显示..

我希望它为yyyymm == 201206 ..
@Dormilich..Thanks for the response..

It does not give any errors.. It simply displays year only...upto current year.. Month is not at all displayed..
I want it as yyyymm==201206..


不是月份一个单独的< select>?
isn’t month in a separate <select>?


这篇关于如何在jsp中获得动态yyyymm下拉字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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