Server IP : 173.249.157.85 / Your IP : 216.73.216.232 Web Server : Apache System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : econtech ( 1005) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/econtech/www/public/back/assets/js/demo11/pages/crud/forms/validation/ |
Upload File : |
var KTFormControls={init:function(){$("#kt_form_1").validate({rules:{email:{required:!0,email:!0,minlength:10},url:{required:!0},digits:{required:!0,digits:!0},creditcard:{required:!0,creditcard:!0},phone:{required:!0,phoneUS:!0},option:{required:!0},options:{required:!0,minlength:2,maxlength:4},memo:{required:!0,minlength:10,maxlength:100},checkbox:{required:!0},checkboxes:{required:!0,minlength:1,maxlength:2},radio:{required:!0}},invalidHandler:function(e,r){$("#kt_form_1_msg").removeClass("kt--hide").show(),KTUtil.scrollTop()},submitHandler:function(e){}}),$("#kt_form_2").validate({rules:{billing_card_name:{required:!0},billing_card_number:{required:!0,creditcard:!0},billing_card_exp_month:{required:!0},billing_card_exp_year:{required:!0},billing_card_cvv:{required:!0,minlength:2,maxlength:3},billing_address_1:{required:!0},billing_address_2:{},billing_city:{required:!0},billing_state:{required:!0},billing_zip:{required:!0,number:!0},billing_delivery:{required:!0}},invalidHandler:function(e,r){swal.fire({title:"",text:"There are some errors in your submission. Please correct them.",type:"error",confirmButtonClass:"btn btn-secondary",onClose:function(e){console.log("on close event fired!")}}),e.preventDefault()},submitHandler:function(e){return swal.fire({title:"",text:"Form validation passed. All good!",type:"success",confirmButtonClass:"btn btn-secondary"}),!1}})}};jQuery(document).ready(function(){KTFormControls.init()});