2
I am creating a simple electronic point system, and I am trying to place the time within a certain div, the moment the user clicks the link enter, the time he clicked on this link appear within a div. The code of my boot looks like this: I’m using Html5 and CSS, preferably in this language, but can get in Javascrpit, grateful.
<div id="entrada1">Hora da Entrada </div>
<!-- Preciso que a hora apareça aqui-->
<div id="botao-entrar">
<div class="botao" > <a href="a definir se vai precisar" class="botao" > Entrar </a> </div>
It worked cool, Two things got overwriting the name "time of entry" the first there at the beginning, I need it because it is edited in css, How to keep it, and how to change the color of the numbers that appear, can not be because div pq Jah be ready for the "time of entry" as said before.
– Daniel Miranda
'<div> <divclass="HR" style="display: inline;"> Input Time </div> <div class="RHR" style="display: inline;" id="receivedHora"></div> </div><br> CSS = . HR{ color: red; } . RHR{ color: blue; }' replace the html with that and style the divs according to the class
– Felipe Duarte