'Is there a way to disable javascript for just a part of my HTML code? [closed]

I'm using a bootstrap template which use "jqBootstrapValidation.js" (http://reactiveraven.github.io/jqBootstrapValidation) to validate it's forms. I edit template and add a form to it, but my submit button doesn't work!when I comment the script which inculde "jqBootstrapValidation.js", my submit button get to work! I don't want to edit the Javascript file. Is there a way to disable it for just my form?

this is my form:

<form name="register" id="regForm" name="input" action="pay.php" method="post">
        <div class="row control-group">
            <div class="form-group col-xs-12 floating-label-form-group controls">
                     <label> email</label>
                     <input type="email" class="form-control" 
                         id="email" required>
                     <p class="help-block text-danger"></p>
             </div>
        </div>

        <div class="row control-group">
              <div class="form-group col-xs-12 floating-label-form-group controls">
                     <label>Telephone</label>
                     <input type="tel" class="form-control"  id="phone" required>
                     <p class="help-block text-danger"></p>
              </div>
        </div>

        <div id="success"></div>

        <div class="row" align="left">
               <div class="form-group col-xs-12">               
                    <button type="submit" class="btn btn-success btn-lg">
                      register
                    </button>
               </div>
         </div>
 </form>


Solution 1:[1]

You could override the function

Assuming its a global function e.g.

function handleForm () {
  //existing code
}

override:

var originalFunction = window.handleForm; //store for future use
window.handleForm = function() {
  //psuedo code
  if(form is the one with this id/class/whatever call) newFunction();
  else originalFunction();
}

Solution 2:[2]

It would help if you supply at least some of the script.

I'd change the class name or id of the form (or element that contains the form) or the class names of the input elements. It Depends on what DOM hook the script acts upon.

Solution 3:[3]

You can pick up the form and unbind all events on it. Recommend use jQuery to resolve it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jenson-button-event
Solution 2 Paul-Adrian Stoleriu
Solution 3 Todd Mark