I am currently trying to teach myself some coding, and I am following along on a lesson of how to make a stopwatch. So far I have gotten everything to work, except when I hit the lap button it is not taking the laptime and appending it to an empty div. Any ideas?
This is the function I am trying to use:
function addLap(){
var myLapDetails = "<div>Lap</div>";
$("#myLapDetails").appendTo("#laps");
}
This is where I am trying to place it:
<div id="laps">
Any thoughts?