Skip to main content

Posts

Showing posts from March, 2021

Send AJAX Call From Static HTML to Laravel

 Send AJAX Call From  Static  HTML  to Laravel There are some basic steps to follow: Create HTML form  Receive  form data when click on submit button  using Jquery  After receiving form data  send ajax call  to   laravel Project or url When Request received in Controller /method   it send's  Response That Respose will be in success or  failure  Let's start Create HTML form  Create index.html   in which we need to make a form   We need to add  form id= "contact_report" intput name as    name , number , course and also add id="btn-submit-report"  in submit input field Receive  form data when click on submit button  using Jquery  After footer tag we need to  write jquery   <script src="js/jquery.min.js "></script> <script src="js/jquery.validate.js "></script> <script src="https://cdnjs.cloudflare.com/ajax...