I need to show jquery datepicker
on link click, also when a date is picked change link text to this date, how can I do it?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- React Native Inline style for multiple Text in sin
- Disable Browser onUnload on certain links?
Well, may be it's to late to reply in this post, but here is a great solution from Andrew in a similar thread, which works in 2015.
In a few words you need to put hidden input right after link and an empty div. The last one will do the trick.
Besides, there will no need in link click event.
This worked for me. Needs jquery-ui .ls and .css.
jQuery UI date picker should do the job.
Check out the example using an icon to trigger the picker: http://jqueryui.com/demos/datepicker/#icon-trigger
You can also call the show() method to drop down the picker whenever you need to, e.g...
To change the link text after a date is selected, use something like this in initialization code:
Salam
I discover this solotion :
And work properly.
Sincerely yours.
Alireza Balvardi