Skip to content

I think it's because you're binding an action to "onsubmit" which will by default redirect from the page you're on. Try removing the onsubmit= part in your HTML and add this to your JavaScript instead (using jQuery): #1007

@mereminiGit

Description

@mereminiGit
          I think it's because you're binding an action to "onsubmit" which will by default redirect from the page you're on. Try removing the `onsubmit=` part in your HTML and add this to your JavaScript instead (using jQuery):
$( "form#measure-the-heat").submit(function(event) {

  event.preventDefault(); // Prevent the page from redirecting

  // Put the swal-code here
});

Originally posted by @t4t5 in #414 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions