2010-10-05, 09:34 AM
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:
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.