skip to Main Content

Php versions – Problem with remote method of jQuery plugin Validation

I am gonna to test plugin Validation especially method "remote". I made test example that consists from HTML file with following code: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha256-pasqAKBDmFT4eHoN2ndd6lN370kFiGUFyTiUHWhU7k8=" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/jquery.validate.min.js"></script> <script> $(function(){ $('#myForm').validate({ rules:…

VIEW QUESTION

Get data as object after form submit in jQuery

I am building a website that can send custom data after submission with the below code. $('form').submit((e)=>{ e.preventDefault(); let data = $('form').serializeArray(); console.log(data); $.ajax({ url: 'path/to/submit', type: 'POST', data: data, success: (res) => { console.log(res); } }) }); form {…

VIEW QUESTION
Back To Top
Search