How do I make the jQuery Datepicker open up by a user defined button?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
There's built-in support for this, having an icon or button to right right of the textbox, like this:
If you want to show it from another button, or really any event, call the
show
method, like this:You can try it here
I have solved using focus.
This is HTML for date picker icon
This is function for open & close datepicker on icon click
The samples page as an example of how to make the datpicker appear by clicking an icon:
here
The question is not clear if you want an additional trigger or an additional trigger. If you want to have an additional trigger. The accepted answer did not work for me perhaps its an outdated version. The below code worked for me as a general trigger