MyBB Community Forums

Full Version: [Help] Conflict with jquery+prototype !!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,can someone help me help me with jquery+prototype conflict please ?
I'm creating a spoiler with jquery effect...
I was reading here and here,but i can't understand cuz i'm a newbie :/.
My spoiler is working but the prototype's things no.
Here's the example of the code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>

<script>
	$(document).ready(function(){
		$("#spoilercontent").hide();
		$("#spoilerhead").click(function () {
			if ($("#spoilercontent").is(":hidden")) {
				$("#spoilercontent").slideDown("slow");
			} else {
				$("#spoilercontent").slideUp("slow");
			}
		});
	});
</script>
Thanks in advanced guys.
Please search before you post, this issue has been brought up and answered again and again, just searching for jquery gave me enough results that would have solved your problem

http://community.mybb.com/thread-79259.h...ght=jquery

http://community.mybb.com/thread-76310.h...ght=jquery
Oh god finally...After 3 days of trying to fix it xD
The first example - G33K -,thanks a lot.