views:

27

answers:

1

Hi,

I just wanted to know if this is possible.

i Have a Table like this

Site Name   Type    Address City    Lat Long    Fault Time
ISB056  Spur    aaaa    Isl 73.0    33.64   13:14 PM

What i want is to Click the Last TD (with the TH Fault Time) and have a datepicker ask a new date and have it inserted into the TD instead of the previous date.

I cant select the TD and use .text() to insert the new date. But how to call the Jquery UI Datepicker on this item..

+1  A: 

One simple solution would be to put the date in a text field (INPUT) inside the TD. This way you can use the date picker with the default behavior (click on the text field triggers the date picker).

Then make your text field read-only and style it so that it doesn't look like a text field (if that is what you want).

Pierre Henry
You don't really have to make all those `textbox`, [look](http://jsfiddle.net/FMuut/)
Reigel
Yes, nice solution actually.
Pierre Henry