Hi!
For me it works if i do like this:
function displayDate(){
var date = new Date();
$("#dateandtime").text(""+date);
}
hope it helps
/Jonas
Solved:
$("#dateandtime").text(date.toString());
Try this:
function displayDate(){
var date = new Date();
$("#dateandtime").text(date.toString());
}
On Aug 1, 5:56 pm, Nazgulled <[EMAIL PROTECTED]> wrote:
> Hi,
> This is my code:
>
> function displayDate(){
> var date = new Date();
> $("#dateandtime").text(date);
>
> }
>
> $(document).
3 matches
Mail list logo