Jquery- on Form Submit Validate

On Form Submit Validate using Jquery

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

       if(damount=="") { 
          dMsgElmnt.html("Please Enter a Minimum Amount."); 
          return false; 
          var r = confirm("Do you want to submit?"); 
          if (r == true) 
             return true; 
          } else {    
              return false; 

Leave a Reply

Your email address will not be published. Required fields are marked *