So, I found this thread: http://css-tricks.com/forums/discussion/19000/show-hide-div-with-toggle-text-help/p1
and tried to follow the jsfiddles, but it didn't work for me. can someone tell me what i'm doing wrong?
This is my attempt: http://jsfiddle.net/margaretcollins/TTbPL/2/
Thanks!
@margaretcollins
Your jsfiddle does work, you just omitted to use the correct javascript libary.
If you change, on the left side, the selection that says Mootools 1.4.5 to any of the jQuery 1.7+ selections it will all function.
That's embarrassing. So, when I try to use that on a page I'm developing locally, how do I reference the Jquery library? Sorry for such stupid questions and thanks for your help!
I tried putting this in my file and it's not working.
< script src="http://code.jquery.com/jquery.min.js" >
@margaretcollins Put this script before your jQuery code starts.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
So, I found this thread: http://css-tricks.com/forums/discussion/19000/show-hide-div-with-toggle-text-help/p1
and tried to follow the jsfiddles, but it didn't work for me. can someone tell me what i'm doing wrong?
This is my attempt: http://jsfiddle.net/margaretcollins/TTbPL/2/
Thanks!
@margaretcollins
Your jsfiddle does work, you just omitted to use the correct javascript libary.
If you change, on the left side, the selection that says Mootools 1.4.5 to any of the jQuery 1.7+ selections it will all function.
That's embarrassing. So, when I try to use that on a page I'm developing locally, how do I reference the Jquery library? Sorry for such stupid questions and thanks for your help!
I tried putting this in my file and it's not working.
< script src="http://code.jquery.com/jquery.min.js" >
@margaretcollins Put this script before your jQuery code starts.