2 issues: initialization and date default

2 issues: initialization and date default


Hello,
I am new to JQuery UI, but like what I see. I have begun trying to
implement it, but am having two issues. I tried the Beta, but am now
on last nights nightly, neither of which I am having success with this
code below:
<input type="text"
name="formFld_6"
id="formFld_6"
size=15 maxlength=11
value="11-JAN-2008"
>
<script type="text/javascript">
$(document).ready(function(){
$('#formFld_6').datepicker();
});
</script>
Problem 1:
---------------
When the date screen tries to initialize, it places jibber up on the
screen, but fails to fully draw.
Problem 2:
---------------
I had originally had a more complicated script that would do things
like set the date format. I would like to be able to end up with the
result similar to "11-JAN-2008" so I tried the following:
<script type="text/javascript">
$(document).ready(function(){
$('#formFld_6').datepicker({dateFormat: 'dd-M-yy', showOn:
'both',
buttonImageOnly: true, buttonImage: '/script/common/
jquery.ui-1.5b/datepicker/img/calendar2.gif'});
});
</script>
Well the blue calendar button showed, but the same jibber occurred as
above.
As part of this problem, I would like to be able to re-edit a form
where the date the date picker must start with would be the same "11-
JAN-2008" or similar that has been selected on a previous edit. How
would I pre-init the field to the old value? value="11-JAN-2008" in
the input field?
Thanks for helping a newbie!!!