Form does not send by IE, nor by firefox

Asked

Viewed 23 times

0

My form is only sending by Chrome, I would like to understand the pq.

It uses the normal post method, only that I have this JS that depending on the value that is there, it sends the user to the page that contains in the select value of a Dropbox.

So that he does not recognize this JS , pq when shooting works, and strange that it only happens in other browsers, in Chrome works (I get the email).

JS

$(function() {
   $('#btnget').click(function(e) {

      let formValido =  document
    .getElementById("formulario")
    .checkValidity();

      if(formValido){
         $("#formulario")
         .attr("action", $('#form').val())
         .submit();
      }
   })
});
  • the button "btnget" is of the type Submit?

  • @Ricardopunctual yes

  • is making a Ubmit from another, it does not seem a good idea, the button could a simple button since it has this logic to make the Ubmit after

  • You know the IE and Firefox version you’re using?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.