Customizing datepicker

Customizing datepicker


Hi,
my first time here and thought this would be more appropriate here.
I'm making some small adjustments to the ui.datepicker. My goal is to
add support for shortcuts now and add some validation later.
At the moment I'm trying to add a shortcut of 'n' ie when the user
types 'n' in an input field associated with datepicker it would change
this to the current date (so the user doesn't have to open the
calendar).
I'm stuck at _doKeyPress-function. I get it to recognize the n-
keypress but it won't let me change the value of the input. I can do
blur, hide and inst.id gives me the id of the input, but when I try to
set the value (val, html, text) it always gives and error of type
'Object doesn't support this property or method'. What am I doing
wrong here?