如何通过单击超链接打开jquery datepicker? [英] How do I open the jquery datepicker by clicking on a hyperlink?

查看:100
本文介绍了如何通过单击超链接打开jquery datepicker?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个链接<a href="#">Choose Date</a>,我想单击它并弹出以打开日期选择器.有什么办法吗?

I have a link <a href="#">Choose Date</a> that I want to click and pop open the datepicker. Is there any way to do this?

推荐答案

是的,方法是在div ,然后显示/隐藏该div.使用 altField 将日期写到隐藏的输入元素中.

Yes, by calling it on a div and then showing/hiding that div. Use altField to write the date to a hidden input element.

这篇关于如何通过单击超链接打开jquery datepicker?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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