Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

212
Visualizações
Need help solving ''Error Loading Page'' in Jquery mobile html

I have major error where I have this error message "Error Loading Page" appears when I click 'submit' button.

html code

<div data-role="collapsible">
     <h3>ENTER YOUR INFORMATION HERE FOR DELIVERY</h3>
     <form id="deliveryform">
        <p>
           <label for="name">Name</label>
           <input type="text" name="inputname" id="inputname" placeholder="Fullname" <br>
        </p>

        <p>
            <label for="phone">Phone Number</label>
            <input type="text" name="inputphonenumber" id="inputphonenumber" placeholder="011123456789" required>
            <span id="warning1"></span><br>
        </p>
                        
        <p>
            <label for="email">Email</label>
            <input type="text" name="inputemail" id="inputemail" required><br>
        </p>

            <fieldset>
                  <input type="submit" value="Submit" onclick="validation()"><br>
            </fieldset>        
     </form>
</div>

javascript

function validation()
{
    var a=document.getElementById("inputname").value;
    var b=document.getElementById("inputphonenumber").value;
    var c=document.getElementById("inputemail").value;
    var emailformat = "[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$";

    if(a=="")
    {
        alert("Please enter a name");
        return false;
    }

    if(isNaN(b))
    {
        document.getElementById("warning1").innerHTML="Please insert numbers Only!";
        return false;
    }

    if(!c.match(emailformat))
    {
        alert("Please use the correct format.Example : abc123@gmail.com");
        return false;
    }
    
    else
    alert("Submit successfully")
    return true;
}

How to solve this Error Loading Page error? I really need help with this. I don't really understand jquery codes, so I hope someone can explain it in javascript if possible.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda