Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

jquery don't work correctly

Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just working jquery validation of empty fields, jquery validation of number of characters and jquery validation of numerical does not work.


        <%@page contentType="text/html" pageEncoding="UTF-8"%>
           <!DOCTYPE html>
           <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
           <link href="css/table.css" rel="stylesheet" type="text">
           <link rel="stylesheet" type="text/css" href="estilo.css">
           <style type="text/css">
               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                       <title>Crear registro de una Persona</title>
           <script type="text/javascript" src="jquery-3.2.1.min"></script>    
           <script type="text/javascript" src="jquery.validate.min"></script>    
           <script type="text/javascript">
           $(document).ready(function() {
           rules: {
           rut: {
           required: true,
           number: true,
           required: true,
           required: true,
               <h1>Crear una Persona</h1>
               <form id="createPersonForm" action="" method="post">
           <div class="navbar navbar-fixed-center">
           <tr><td>Rut:</td><td><input type="text" id="rut" name="rut"    required/><span id="dato1"></span></td></tr>
           <tr><td>Nombre:</td><td><input type="text" id="nombre" name="nombre" required/><span id="dato2"></span></td></tr>
           <tr><td>Apellidos:</td><td><input type="text" id="apellido" name="apellido" required/><span id="dato3"></span></td></tr>
           <div class="navbar-inner">  
           <input type="submit" class="btn btn-info" id="CrearRegistro"   value="CrearRegistro" />

when entering a quantity less than the minimum, does not make any validation.
only accept numbers in rut, when you enter letters accept them.
Any sufficiently advanced technology will be used as a cat toy. And this tiny ad contains a very small cat:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic