Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7540123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:33:43+00:00 2026-05-30T07:33:43+00:00

I have that code: jQuery(document).ready(function () { // binds form submission and fields to

  • 0

I have that code:

jQuery(document).ready(function () {
    // binds form submission and fields to the validation engine
    jQuery("#form1").validationEngine();
});

and

jQuery(function () {
    jQuery(".button").click(function () {

        var rx1 = jQuery("input#p_scnt").val();
        var name = jQuery("input#name").val();
        var phone = jQuery("input#phone").val();
        var email = jQuery("input#email").val();
        var rx1 = jQuery("input#p_scnt").val();
        var rx2 = jQuery("input#p_scnt_2").val();
        var rx3 = jQuery("input#p_scnt_3").val();
        var rx4 = jQuery("input#p_scnt_4").val();
        var rx5 = jQuery("input#p_scnt_5").val();
        var rx6 = jQuery("input#p_scnt_6").val();
        var rx7 = jQuery("input#p_scnt_7").val();
        var rx8 = jQuery("input#p_scnt_8").val();
        var rx9 = jQuery("input#p_scnt_9").val();
        var rx10 = jQuery("input#p_scnt_10").val();
        var rx11 = jQuery("input#p_scnt_11").val();
        var rx12 = jQuery("input#p_scnt_12").val();

        var dataString = 'name=' + name + '&email=' + email + '&phone=' + phone + '&rx1=' + rx1 + '&rx2=' + rx2 + '&rx3=' + rx3 + '&rx4=' + rx4 + '&rx5=' + rx5 + '&rx6=' + rx6 + '&rx7=' + rx7 + '&rx8=' + rx8 + '&rx9=' + rx9 + '&rx10=' + rx10 + '&rx11=' + rx11 + '&rx12=' + rx12;
        //alert (dataString);return false;

        jQuery.ajax({
            type: "POST",
            url: "http://www.page.com/lib/process.php",
            data: dataString,
            success: function () {
                jQuery('#form_content').html("<div id='message'></div>");
                jQuery('#message').html("<h2>Rx Refill Request Submitted!</h2>")
                    .append("<p>Thank you for choosing Our Pharmacy</p>")
                    .hide()
                    .fadeIn(1500, function () {
                    jQuery('#message').append("<img id='checkmark' src='http://www.page.com/images/check.png' />");
                });
            }
        });
        return false;
    });
});

Form validation works itself when I jumping between fields but when I will leave those required fields empty and will submit that form it will go without any validation for required fields.

Any clue where I have done mistake?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T07:33:44+00:00Added an answer on May 30, 2026 at 7:33 am

    Found an issue – it was related to the validationEngine plugin itself (some kind of internal error). Got version 2.2 and rewrote code to

            jQuery(document).ready(function() {
    
            jQuery("#form1").validationEngine('attach', {
              onValidationComplete: function(form, status){
                if (status == false){
                    alert("All information must be provided for your refill request to be completed.");
                }
                else {
                    var rx1 = jQuery("input#p_scnt").val();
                    var name = jQuery("input#name").val();
                    var phone = jQuery("input#phone").val();
                    var email = jQuery("input#email").val();
                    var rx1 = jQuery("input#p_scnt").val();
                    var rx2 = jQuery("input#p_scnt_2").val();
                    var rx3 = jQuery("input#p_scnt_3").val();
                    var rx4 = jQuery("input#p_scnt_4").val();
                    var rx5 = jQuery("input#p_scnt_5").val();
                    var rx6 = jQuery("input#p_scnt_6").val();
                    var rx7 = jQuery("input#p_scnt_7").val();                                
                    var rx8 = jQuery("input#p_scnt_8").val();                                
                    var rx9 = jQuery("input#p_scnt_9").val();                                
                    var rx10 = jQuery("input#p_scnt_10").val();                                
                    var rx11 = jQuery("input#p_scnt_11").val();                                
                    var rx12 = jQuery("input#p_scnt_12").val();                                                            
    
                    var dataString = 'name='+ name + '&email=' + email + '&phone=' + phone + '&rx1=' + rx1 + '&rx2=' + rx2 + '&rx3=' + rx3 + '&rx4=' + rx4 + '&rx5=' + rx5 + '&rx6=' + rx6 + '&rx7=' + rx7 + '&rx8=' + rx8 + '&rx9=' + rx9 + '&rx10=' + rx10 + '&rx11=' + rx11 + '&rx12=' + rx12;
                    //alert (dataString);return false;
    
                    jQuery.ajax({
                  type: "POST",
                  url: "http://www.page.com/lib/process.php",
                  data: dataString,
                  success: function() {
                    jQuery('#form_content').html("<div id='message'></div>");
                    jQuery('#message').html("<h2>Rx Refill Request Submitted!</h2>")
                    .append("<p>Thank you for choosing Our Pharmacy.</p>")
                    .hide()
                    .fadeIn(1500, function() {
                      jQuery('#message').append("<img id='checkmark' src='http://www.page.com/images/check.png' />");
                    });
                  }
                 });
        return false;                   
                }
    
              } 
            });
    

    And final got it to work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some jQuery code that intercepts links clicked on a page: $(document).ready(function() {
I have a jquery function that binds a select field on a form to
I have below code in Jquery $(document).ready(function() { // bind to cells with an
In my jQuery-validation submitHandler, I'm renaming some fields so that they have the same
I have code that uses jquery.slideup and jquery.slidedown How can i know that div
I have this jQuery code that queries an API on a keyup event (via
I have some jquery code that is doing an ajax lookup and returning comma
I have some jQuery code that highlights a link when clicked, and changes the
I have the following JQuery code that worked perfect in C#/Asp.net 2.0 to call
I have a simple jQuery code that runs on a web page that has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.