Are there any Jquery datepickers or calendar that can have a day as a link to a new page?
I tried modifying the Jquery ui datepicker, but it didnt work in Ie7 and chrome.
but since im not a javas开发者_JAVA百科cript expert I need to find a premade solution, something that makes certain days links.
Thank you
I'm not sure what you're exactly trying to do, but you can capture the date selection in the jQuery UI datepicker by wiring up the onSelect
event handler:
$("#myDate").datepicker({
onSelect: function(date, inst) {
//do something here with the selected date
},
//...
})
The date
parameter passed in is the text of the date, and the inst
parameter is the instance of the datepicker. Depending on how you want to link to pages based on date, you could take the date text that's passed in to the onSelect
handler and navigate to that page accordingly.
If you have more info on how you want to link, please add it and I'll respond.
Thanks. Hope this helps.
精彩评论