I am new to Joomla 3.
I am trying to add a JQuery script to a joomla page that runs with the $ sign.
In the documentation, I found that I need to add JHtml::_('jquery.framework', false);
to do that, but it isn't working.
I tried:
<?php
JHtml::_('jquery.framework', false);
?>
<div class="text">JQuery is not working</div>
<script type=text/javascript">
$(document).ready(function(){
$('.text').text("JQUERY ROCKS!");
});
</script>
And the usual:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<div class="text">JQuery is not working</div>
<script type=text/javascript">
$(document).ready(function(){
$('.text').text("JQUERY ROCKS!");
});
</script>
But none works. Why?