views:

22

answers:

1

Hi, I'm playing around with the UI datepicker widget and I noticed that when the calender is generated, all the dates are inside an anchor tag with href="#". is it possible to change the href to the dateText, or whatever i set the dateFormat to?

ex: <a class="ui-state-default" href="#October-27-2010">27</a>

Thanks in advance

//update

any clues on how to do this?

+1  A: 

I suppose you can in this case.

Why would you want to change the href? The datepicker links work with an click-event, so when the link is clicked it won't use the href but it executes the javascript first. And if this script returns false, the href-attribute will never be read (which probably is the case because the URL doesn't get the "#" at the end).

If the script returns true, the link will be executed.

Google will read those links, though, if they lead somewhere (because the indexing-robots ignore javascript as far as I know). Is that what you want to achieve?

Justus Romijn
I've been given an old events calendar with anchors spread throughout. I thought it would be nice to use this datepicker to navigate through those anchors. Rather than build a calendar from scratch, and constantly have to update it. also, I'm not concerned with google reading these links.
Gerald