This is how the code should be in my knowledge : <script type="text/javascript"> var Date=new Date();
jQuery(document).ready(function(){ $("p").click( function() { $("#time_table").append("<tr><td>" + new Date().toString() + "</td></tr>"); }); }); </script> Thanks & Regards, Dhruva Sagar. On Mon, Nov 23, 2009 at 4:07 PM, Alfredo Alessandrini <alfreal...@gmail.com>wrote: > Hi, > > I need to insert the time in a table like this: > > > <script type="text/javascript"> > > var Date=new Date(); > > jQuery(document).ready(function(){ > > $("p").click( function() { > $("#time_table").append("<tr><td>",document.write(new > Date()),"</td></tr>"); } ); > > }); > > </script> > > > but this don't work... > > > thanks, > > Alfredo >