I am already declaring jQuery at the top of my <head>, below that I am referencing a ton of other plugins. When I do this in the body of my page:
<script type="text/javascript">
$(function() {
alert('hello');
});
</script>
I don't get the alert. However if I redeclare jQuery again like so:
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
alert('hello');
});
</script>
It works. Is there any way to reassign the $ back to jQuery (which is what I'm guessing is the problem here). So I can use $ instead of jQuery noConlict.
$j = jQuery.noConflict();and wouldn't have to worry about handing over control back and forth.