MyBB Community Forums

Full Version: Expander
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone.
I am trying to make this work on mybb but had no luck until now.
http://jsfiddle.net/Q4PUw/1753/
So I basically added this in headerinclude:
<script type="text/javascript">
$('.expand-one').click(function(){
    $('.content-one').slideToggle('slow');
});
</script>
And added the html somewhere in the footer just for testing purposes. I didn't add the css at all since I didn't want it to be "closed" by default.
When I click on "Click Here To Display The Content" nothing happens.
Any ideas on what's causing this?
You're calling Prototype with your code. Change $ into jQuery instead
<script type="text/javascript">
jQuery('.expand-one').click(function(){
    jQuery('.content-one').slideToggle('slow');
});
</script>
Nope, didn't work. Still need help.