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

  • SEARCH
  • Home
  • 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 8231883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:38:35+00:00 2026-06-07T17:38:35+00:00

I am using this plugin http://code.google.com/p/bvalidator/ $(‘#vendorDetailsForm’).bValidator(); if ( $(‘#vendorDetailsForm’).data(‘bValidator’).isValid() ) { $(#addVendorsTabs).tabs(‘select’, 4);

  • 0

I am using this plugin http://code.google.com/p/bvalidator/

 $('#vendorDetailsForm').bValidator();

 if ( $('#vendorDetailsForm').data('bValidator').isValid() ) {
     $("#addVendorsTabs").tabs('select', 4);
 }

The above logic is bind to a button that is nested inside vendorDetailsForm element, but i want to disable the submit action upon validation is successfull, and instead navigate to tab in index 4.

Currently it navigate to index 4, but then it submit the form!

Is there a way to do that?

  • 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-06-07T17:38:37+00:00Added an answer on June 7, 2026 at 5:38 pm

    jQuery’s preventDefault is your best option, so it works more consistently across browsers.

    $("#submit").submit(function(evt) {
        ...
        evt.preventDefault(); // prevent default behavior of the event, in this case form submission
        return false; // return false, just in case, but in theory is not necessary
    });​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using this plugin for jquery called resize-crop: http://code.google.com/p/resize-crop/ The problem with this is
I have a form which is built dynamically using this jQuery plugin http://code.google.com/p/jquery-dynamic-form/ When
the jquery plugin that im using is this http://code.google.com/p/jquery-in-place-editor/ if i have a table
I am using this plugin http://code.google.com/p/lwrte/ , but I can not select the textarea
Im using this jquery plugin for searching text : http://code.google.com/p/jquery-highlight/downloads/list .. But im not
I'm using a tutorial plugin - http://particlebits.com/code/jquery-tutorial/ which has this code attached to the
so I'm trying to use this plugin: http://code.google.com/p/zeroclipboard/wiki/Instructions which basically allows you to set
I am using the jquery-ui-map plugin (http://code.google.com/p/jquery-ui-map/). I have successfully created a map using
I'm using the wonderfully lightweight jQuery minitabs plugin from: http://code.google.com/p/minitabs/ which is a lovely
Using this code $.getJSON(http://mydomain.com/getcustomers?callback=?,function(data) { .... }).error(function(err){ .... }) I'm getting jQuery16103492487950357067_1336742910384 was not

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.