' ); }, success: function (data) { if (data.success == 1) { $("#formI").trigger('reset'); alert('Pronto nos pondremos en contacto con usted'); window.location.replace("https://borregosdorper.com/inicio/index.html"); } else { alert('Error'); $("#formI").trigger('reset'); } }, error: function () { alert('Error'); } }); }); }); $(document).ready(function () { $("#formIfor").submit(function (e) { console.log("algo"); e.preventDefault(); $.ajax({ url: "/infoformRespomse/", type: 'post', dataType: 'json', data: new FormData(this), cache: false, enctype: 'multipart/form-data', processData: false, contentType: false, beforeSend: function () { $('#messageResponse2').html( '
'+ '

Cargando espere por favor...

'+ '
' ); }, success: function (data) { if (data.success == 1) { $("#formIfor").trigger('reset'); alert('Pronto nos pondremos en contacto con usted'); window.location.replace("https://borregosdorper.com/inicio/index.html"); } else { alert('Error'); $("#formIfor").trigger('reset'); } }, error: function () { alert('Error'); } }); }); }); $(document).ready(function() { $('.desaparece').hover(function(){ $(this).animate({opacity:0}); },function(){ $(this).animate({opacity:1}); }); });