script fout accordion effect
hi everyone
This is my first jquery effect. i want hide my paragraphs and show them when user choose to.
1 - i have downloaded jquery uncompressed.
2 - i wrote in head:
<script type="text/javascript" src="js/jquery-1.5.2.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
$('p#paragraph1').hide();
$('a#paragraphAnchor').click(function()
{
$('p#paragraph1').show(2000);
})
});
</script>
3 - i wrote in body:
<a href="#" id=""paragraphAnchor">hide</a>
<p id="paragraph1">
the first jquery<br />
the first jquery<br />
the first jquery<br />
</p>
4 - 1 want show and hide the paragraph1?