You can use the noConflict function from jquery to create a hacky environment to isolate your version of validate. However if you need the same plug in both old and new version of validate you have to import it twice or do the copy of the functions yourself. Here a snippet to illustrate this:
<div class="container main">
<div class="row">
<div class="col-md-12">
<form name="old-val" id="old-val">
Age: <input type="text" name="age">
<br />
Postal: <input type="text" name="postal">
<br />
<input type="submit" value="Test">
</form>
<hr />
<form name="new-val" id="new-val">
Email: <input type="text" name="email">
<br />
Postal: <input type="text" name="postal">
<br />
<input type="submit" value="Test">
</form>
</div>
</div>
<hr>
<footer>
</footer>
</div>
<script src="js/vendor/jquery/jquery-2.1.3.js"></script>
<!-- These 3 scripts below only be available to $jqVal114 -->
<script src="js/vendor/bootstrap/js/bootstrap.js"></script>
<script src="js/vendor/bootstrap-dialog/bootstrap-dialog.js"></script>
<script src="js/vendor/block-ui/jquery.blockUI.js"></script>
<!-- This will put jQuery 2.1.3 in a place holder and replace the global $ with ver 1.3 -->
<script src="js/jquery13.js"></script>
<!-- These 2 scripts below only be available to $jqVal106 -->
<script src="js/jquery.validate106.js"></script>
<script src="js/vendor/jquery-form/jquery.form.js"></script>
<script>
// this will take the jQuery 2.1.3 in the place holder back into the global space ie $ == jquery2.1.3
$jqVal06 = jQuery.noConflict(true);
</script>
<script src="js/jquery.validate114.js"></script>
<script src="js/postalCodeCA.js"></script>
<script>
$jqVal14 = $;
</script>
<script>
(function($, jQuery){
// val v1.06
$("#old-val").submit(function(){
var $frm = $(this);
if ($frm.valid()){
alert('No errors from v1.6');
}
return false;
}).validate({
debug: true,
rules: {
age: {
required: true,
digits: true
}
}
});
}($jqVal06, $jqVal06));
(function($, jQuery){
// val v1.14
$("#new-val").submit(function(){
var $frm = $(this);
if ($frm.valid()){
alert('Valid Form, from v1.14');
}
return false;
}).validate({
debug: true,
rules: {
email: {
required: true,
email: true
},
postal: {
postalCodeCA: true
}
}
});
}($jqVal14, $jqVal14));
</script>