You are missing the final });for the operator
<title>Example</title>
<script type="text/javascript" src="jquery-1.3.2.js"></script>
<script type="text/javascript">
$(function() {
$("#link").click(function() {
$("#pg").toggle();
});
)};
</script>
Also, if you are using Firefox, check out Firebug . This is an invaluable debugger tool and will show you where errors occur.
Chrome has developer tools, but are not sure about IE.
Jason source
share