I’ve been trying to display the time by 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 now = 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 then displayed with
<footer id=”foot”>
but I can’t get it to work, can someone tell me if this is viable and how it could be fixed?
Thanks for the time and help.
The only problem with the code in this question are the weird
quotesaround the idfoot. change them and the code works:jsFIDDLE HERE