I'm attempting to use both jQuery 1.4 and 2.0 by utilizing the noConflict function, but the code isn't working as expected. Here is an example of my document head:
<script src="js/jquery-2.0.0.min.js" type="text/javascript"></script>
<script>var jq142 = jQuery.noConflict(true);</script>
<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
Here is an example of the jQuery 2.0 code I'm trying to use:
<script>
jq142(document).ready(function(){
jq142('input').parent().next().hide();
jq142('input').on('focus', function () {
jq142(this).parent().next().show();
});
jq142('input').on('blur', function () {
jq142(this).parent().next().hide();
});
});
</script>
I'm having trouble getting this approach to work properly. Can you spot any issues with it?