0
My goal is when I click the button, 3 seconds after a div
reread the page...
Why does that code not work?
<button id="btn-cadastra-tarefa" ng-click="adicionaTarefa()" onclick="atualiza()"
type="button" data-dismiss="modal" >
<span class="glyphicon glyphicon-ok-sign"></span>Salvar
</button>
<div id="atualizaPagina"></div>
function atualiza() {
setTimeout(function(){ $('#atualizaPagina').location.reload(); }, 3000);
}
I can’t say for sure, but the method
location
does not extend to HTML elements.– Diego Souza
"after a div is given F5", what data you want to assign to that div?
– Matheus
You want to update the whole page or just the created div?
– ℛɑƒæĿᴿᴹᴿ