diff options
author | sreyes <sreyes@dataworks.com.py> | 2014-12-07 19:51:11 (GMT) |
---|---|---|
committer | sreyes <sreyes@dataworks.com.py> | 2014-12-07 19:51:11 (GMT) |
commit | 464f528cff97af7b0c08b0f4c4d754ae716b36a7 (patch) | |
tree | 82b1b1610b68588d2524c21210d5f4a4a8baaeef /EjercitarWeb/WebContent/js/validaciones.js | |
parent | ea0d23a9057a8d9822d4debba9aa60b32a370e26 (diff) |
correcciones en validaciones, todo funcionandosamurey
Diffstat (limited to 'EjercitarWeb/WebContent/js/validaciones.js')
-rw-r--r-- | EjercitarWeb/WebContent/js/validaciones.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/EjercitarWeb/WebContent/js/validaciones.js b/EjercitarWeb/WebContent/js/validaciones.js index df56fde..b2a6a8e 100644 --- a/EjercitarWeb/WebContent/js/validaciones.js +++ b/EjercitarWeb/WebContent/js/validaciones.js @@ -6,9 +6,9 @@ $.validator.addMethod("dateFormat", function(value, element) { - return value.match(/^dd?-dd?-dd$/); + return value.match(/^\d\d?\/\d\d?\/\d\d\d\d$/); }, - "Ingrese la fecha con formato dd-mm-yyyy."); + "Ingrese la fecha con formato dd/mm/yyyy."); @@ -51,11 +51,11 @@ $(document).ready(function(){ tema: { required: true }, - a_priori: { - required: true, - number:true, - pattern: /0+(\.[0-9][0-9]?)?/ - }, + //a_priori: { + // required: true, + // number:true, + // pattern: /0+(\.[0-9][0-9]?)?/ + //}, enunciado: { minlength: 4, required: true |