Jquery plugins use different versions, how to get around it?

1

Good afternoon I'm using the% jQuery Knob that uses the pluign version of jquery, and the mask-input that uses 1.9.0 .

  

MaskInput

I used the latest version and it worked, so I think maskinput is not the problem.

  

Jquery Knob

It only works on version 1.9.0 and if you put any other it does nothing and no error in the console appears.

The Big Problem

asked by anonymous 01.11.2017 / 17:12

1 answer

1

Yes, with jQuery.noConflict () you can do something like this:

<script type="text/javascript" src="jquery-1.9.0.js"></script>
<script> $190 = jQuery.noConflict();</script>
<script type="text/javascript" src="jquery-1.11.0.js"></script>

And then use both $ 190 and $ in your code. Ex:

$('#seletor').function(); ou $190('#seletor').function();
    
01.11.2017 / 17:20