Jquery- on Form Submit Validate

On Form Submit Validate using Jquery

<script type="text/javascript"> 
$(document).ready(function()
{ 
    $("#shr_form").on('submit', function()
    { 
       var dForm = $(this); 
       var damount  = dForm.find("input[name=damount]").val(); 
       var dMsgElmnt= dForm.find("#dmessage");
 
       dMsgElmnt.html(''); 
       dMsgElmnt.css('color',''); 

       if(damount=="") { 
          dMsgElmnt.css('color','red');
          dMsgElmnt.html("Please Enter a Minimum Amount."); 
          return false; 
       }else{ 
          var r = confirm("Do you want to submit?"); 
          if (r == true) 
          {     
             return true; 
          } else {    
              return false; 
          } 
       } 
    }) 
});
</script>

Form validation using jQuery in php

## form validation in JQuery <script type=”text/javascript”> $(document).ready(function(){    $(‘#send_enquiry’).click(function(){ var get_validate = validateForm();        console.log(get_validate); if(get_validate>0){    return false; }else{    return true; } }); function validateForm(){   var facedError = 0;   var nameReg   = /^[A-Za-z]+$/;   var numberReg =  /^[0-9]+$/;  var emailReg  = /^([\w-\.][email protected]([\w-]+\.)+[\w-]{2,4})?$/;   var names     … Read moreForm validation using jQuery in php