Hi,
I declared jquery and it works :
<script src="http://tmoodle.ulb.ac.be/pluginfile.php/2803/mod_resource/content/1/jquery.js" type="text/javascript">// <![CDATA[
>
<script type="text/javascript">// <![CDATA[
alert(jQuery.fn.jquery);
// ]]>
// ]]></script>
Now I would like to use toogle with this code :
<script type="text/javascript">// <![CDATA[
$('#toggle1').click(function() {
$('.toggle1').toggle();
return false;
});
// ]]></script>
<p id="toggle1">Simple Div Toggle<br /><br /></p>
<div class="toggle1" style="display: none; background-color: #4cf; width: 100px; height: 100px;"></div>
I obtain this error :
throw new Error( "Syntax error, unrecognized expression: " + msg ); |