1
I have a website that has some buttons on it. When you click on the buttons, they are directed to the respective pages, but there is a button from which it does not direct, it just stays on the same page. The code I’m using for him is:
$('#btnSeguroViagem').on("click",function()
{
var novaURL = "seguro-viagem.php";
$(window.document.location).attr('href',novaURL);
});
<button type="submit" name="Submit" id="btnSeguroViagem" value="Solicitar" class="btn btn-danger btn-small"><i class="fa fa-plus-square"></i> Solicitar Seguro Viagem</button>
Can anyone tell me why this guy is not going? The page exists, I removed all the content and put a sentence, but nothing. By clicking the button, gives the post, but remains on the same page and does not direct to the safe-travel page.php. The strange thing is that I already gave an Alert() inside the call and arrives correctly.
Good evening, I reversed the question to the original, Jose does not put the answer in the question, to create an answer click on the answer button.
– Guilherme Nascimento
Right William... I’ll create the answer.
– user24136
I can’t find the answer button.
– user24136
Good afternoon Jose, closed questions have no answer button, as your question was a typo, so it is not necessary an answer.
– Guilherme Nascimento