troubleshooting Question

Jquery submit form question

Avatar of kbsad1
kbsad1Flag for United States of America asked on
JavaScriptAdobe DreamweaverjQuery
11 Comments2 Solutions438 ViewsLast Modified:
I have downloaded a step form in jquery that works perfect for me. The only part I am stuck with is the submission part. Here is the script:

<script>

    $('form.idealforms').idealforms({

      silentLoad: false,

      rules: {
        'email': 'required email',
        'password': 'required pass',
        'confirmpass': 'required equalto:password',
       
        'hobbies[]': 'minoption:2 maxoption:3',
        'phone': 'required phone',
        'zip': 'required zip',
        'options': 'select:default',
      },

      errors: {
        'username': {
          ajaxError: 'Username not available'
        }
      },

      onSubmit: function(invalid, e) {
        e.preventDefault();
        $('#invalid')
          .show()
          .toggleClass('valid', ! invalid)
          .text(invalid ? (invalid +' invalid fields') : 'All good!');
      }
    });



    $('form.idealforms').find('input, select, textarea').on('change keyup', function() {
      $('#invalid').hide();
    });

    $('form.idealforms').idealforms('addRules', {
      'comments': 'required minmax:50:200'
    });

    $('.prev').click(function(){
      $('.prev').show();
      $('form.idealforms').idealforms('prevStep');
    });
    $('.next').click(function(){
      $('.next').show();
      $('form.idealforms').idealforms('nextStep');
    });

  </script>

With this script when all requirements are met I get the message  'All good!'. But instead of that I want the form to be submitted.

The form tag is : <form action="untitled1.asp" method="post" class="idealforms" novalidate autocomplete="off">




How can I have it to submit the form?
SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros