Jquery bring up date picker from text field
http://offline.raileisure.com/
I need to be abl开发者_如何学运维e to bring up the datepicker from the text field as well as the little icon..
Any ideas ?
Thanks Lee
change
$('#bydate').datepicker({
showOn: "button",
to
$('#bydate').datepicker({
showOn: "both",
JQuery's datepicker?
http://jqueryui.com/demos/datepicker/
If you're willing to use a different plugin, I suggest http://keith-wood.name/datepick.html
Add a onclick handler to show the calendar with Jquery UI.
Just looked at the site, you need to bind a click event to your image and then use the show method for the datepicker:
$(".ui-datepicker-trigger").click(function(){
$(".hasDatepicker").datepicker("show");
});
精彩评论