How do I use slideToggle inside a wordpress post?

Ok, so based on your comments, the problem as those pesky

tags… WordPress is nasty with those, sometimes.

As I said, it might be worth looking into a plugin that lets you add javascript to specific posts/pages.

In the meantime, I suspect things should work if you put your whole javascript tag on one line (no newlines)… Not easy to read, but it should prevent WP from adding

tags in your javascript:

<script> jQuery(window).load(function(){ jQuery(".slidingDiv").hide(); jQuery(".show_hide").show(); jQuery('.show_hide').click(function(){ jQuery(this).next().slideToggle(); }); jQuery('.slidingDiv').click(function(){ jQuery('.slidingDiv').slideUp(); }); });</script>

Hope this helps!