-1
I made a form for password editing and the expected action is a Ubmit on onclick, but on the contrary is displayed a screen for managing Chrome, I did not enable this option and it persists on all sites that allow me to change my personal password.
The code is simple:
<form role="form" id="formEditPassword" class="formEditPassword" onSubmit="return false;">
<div class="input-group">
<input type="password" id="novopass" class="novopass form-control" name="novopass" required placeholder="Nova senha (mínimo 5 digitos)">
</div>
<div class="input-group">
<input type="password" id="cfrmpass" class="cfrmpass form-control" name="cfrmpass" required placeholder="Confirme a senha (mínimo 5 digitos)">
</div>
<div class="input-group">
<input type="password" id="atualpass" class="atualpass form-control" name="atualpass" required placeholder="Sua senha atual">
</div>
<div class="input-group">
<a class="form-link" href="form-reset">Esqueceu sua senha?</a>
</div>
<div class="returnData"></div>
<button type="submit" id="btnSendForm" class="btn btn-default vcenter">Salvar alterações</button>
</form>
<script>
$("#btnSendForm").on('click', function(){
$.ajax({
type: 'POST',
url: "form-password",
data: $("#formEditPassword").serialize(),
success: function(data) {
$('.returnData').html(data);
}
});
});
</script>
But when you click submit, as in other cases with the same source, now the window appears below, the field validates but the window appears obstructing the user experience.
You could provide sufficient details such as code and how you would expect from your application.
– RXSD