mardi 2 juin 2020

Can anyone please tell me why my js code is not working?

I want to display "00:00" on the page but the page is empty i dont know why its not working JS

$(document).ready(function(){
    var minut = $("#minut").html;
    var mid = $("#mid").html;
    var sec = $("sec").html;
    minut = "00";
    mid = ":";
    sec = "00";
});

HTML

<span id="minut"></span>
<span id="mid"></span>
<span id="sec"></span>



Aucun commentaire:

Enregistrer un commentaire