You are on page 1of 1

<script type="text/javascript">

$("#add_err").html(" ");
$(document).ready(function(){
$("#form_login").submit(function(){
let identificacion1 = $("#identificacion1").val();
let password1 = $("#password1").val();
alert(identificacion1 + ' ' + password1)
if (identificacion1==12345 && password1=="luis1")
{
window.location="https://www.facebook.com";
}
else
{
Swal.fire({
type: 'Error',
title: 'Erorrrr',
text: 'Identificacion o contrasena incorrecta',
footer: '<a href> Intente</a>'
})
}
return true;
});

});

</script>

----------------------------------------------------------------------

<script type="text/javascript">
$("#add_err").html(" ");
$(document).ready(function(){
$("#iniciarSesion").submit(function(){
identificacion1=$("#identificacion1").val();
password1=$("#password1").val();
if(identificacion1=='123'&&password1=='luis1')
{
$("#container").fadeOut("normal");
window.location="https://www.google.com.co";
}
else
{
Swal.fire({
type: 'error',
title: 'Uops...',
text: 'Usuario o clave incorrecta!',
footer: '<a href>Intente de nuevo</a>'
})
}
return true;
});
});
</script>

You might also like