How can I use “aliased” jQuery with Select2?:
<script src="jquery-v1.12.js"></script>
<script>
var $pb = jQuery.noConflict();
</script>
<script src="select2.js"></script>
<script>
$pb("#mydropdown").select2();
</script>
Exception is:
Uncaught TypeError: $pb(…).select2 is not a function