DatePicker double update not working ... (noob)
Hi,
Bit of a noob at this, fumbling along best as I can ...
This bit of code is working fine ...
- <script>
$(document).ready(function(){
$(function() {
$( "#datepicker" ).datepicker();
});
$( "#datepicker" ).change(function() {
$( "#datepicker" ).datepicker("option", "dateFormat", "DD, d MM, yy");
});
});
</script>
- ...
<td class='xx_tdc'><input type='text' id='datepicker' size='30' /></td>
But when I try to add this in it only completes the first step (format the date)
- <script>
$(document).ready(function(){
$(function() {
$( "#datepicker" ).datepicker();
});
$( "#datepicker" ).change(function() {
$( "#datepicker" ).datepicker("option", "dateFormat", "DD, d MM, yy");
$( "#fish" ).value("Date has been selected");
});
});
</script>
- ...
<td class='xx_tdl' colspan='3' id='fish'>No date selected yet</td>
<td class='xx_tdc'><input type='text' id='datepicker' size='30' /></td>
Can anyone suggest how to update the text of a second <td> item, or even the value of a text input box item?
Cheers
Greg