My JQuery DatePicker onClose does not fire my jquery ver 1.3.2 and all lib that bundle with it.

My JQuery DatePicker onClose does not fire my jquery ver 1.3.2 and all lib that bundle with it.


Here is my code snippet
$("#txt").datepicker({onSelect: function() {$("txt").datepicker
('destroy');}});
$("#txt").datepicker({onClose: function() {$("txt").datepicker
('destroy');}});
I need to override the onSelect due to the bug in IE with respect to
asp.net validation error. I am destroying the datepicker in both
events as I do not want the datepicker to display when my cursor moves
to the textbox attached to datepicker and I am using an external
button as I do not wish to use the ( showon:button option buttontext
etc.)
Thanks in advance