Thursday, 15 May 2014

javascript - HTML JQuery Displaying Date -



javascript - HTML JQuery Displaying Date -

i've been trying display time doing this.

<html> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> <title>my schedule</title> <script type="text/javascript"> $(document).ready(function(){ var = new date(); $("#foot").append(now.tolocaletimestring()); }); </script> </head> <body> <header>day.</header> <ul type="disc"> <li>monday</li> <ol type="circle"> <li>breakfast</li> <li>lunch</li> <li>dinner</li> </ol> <li>tuesday</li> <ul type="circle"> <li>lunch</li> <li>dinner</li> </ul> </ul> <footer id=”foot”>current time:</footer> </body> </html>

and displayed with

<footer id=”foot”>

but can't work, can tell me if viable , how fixed?

thanks time , help.

the problem code in question weird quotes around id foot. alter them , code works:

jsfiddle here

javascript jquery html

No comments:

Post a Comment