[jQuery] Paragraph with ID
Hi, I want to revisit an example usage of jQuery I was attempting 2 weeks ago.
Sample page: <a href="http://www.jojowebdesign.com/skills/javascript/javascript_content.asp">http://www.jojowebdesign.com/skills/javascript/javascript_content.asp
</a>
I wanted to create a simple open / close section.
I got the correct head section script (or is it?):
<script type="text/javascript">
$(document).ready(function(){
$("#jQLink").toggle(function(){
$("#jQHide").slideUp("slow");
},function(){
$("#jQHide").slideDown("slow");
});
});
</script><br clear="all">
Then I set an ID to a P tag:
<p id="jQHide">
And then a link to call the function:
<a href="" id="jQLink">open / close</a>
But I get two resulting problems.
A. Using FireFox
<a href="http://1.5.0.1">1.5.0.1</a> (with web developers disable cache always on) it does not open or close, the page is also reloaded. Reloaded because href is set to " " ?
B. In IE6 it does do a SWEET open close but for some reason instead of doing the ENTIRE P section it stops as soon as it gets to the <ol> ordered list section. Why is that?
Thanks in advance for any help if you have time.
--
Dan Acuff
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/