I've made a few changes to the Kelvin Luck's date picker plugin
(http://kelvinluck.com/assets/jquery/datePicker/). After adding the
ability to click the input to show the calendar it replaces any
existing css classes that may already exist on it (which I should have
caught when adding it). So I have changed it to use addClass instead
of attr({'class' : '...'}).
Along with that, I have reduced the number of times 'attr' is used:
i.e.
$("<a>").attr({'title' : 'Foo', 'rel' : 'myrel', 'href' : 'javascript:;'})
becomes:
$("<a>").title('Foo').rel('myrel').href('javascript:;')
I have left alone those attributes that don't have a shorthand
equivalent (scope, abbr, cellspacing).
Download from:
http://www.texotela.co.uk/datePicker_source.zip
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/