jQuery .noconflict with prototype not working in (you guessed it) IE.

Posted by Kyle Sevenoaks on Stack Overflow See other posts from Stack Overflow or by Kyle Sevenoaks
Published on 2010-04-30T11:19:08Z Indexed on 2010/04/30 11:47 UTC
Read the original article Hit count: 117

On my new customer page, I have successfully implemented a jQuery show/hide toggle alongside a Prototype script using jQuery's .noconflict. (Thanks to all for answers!)

But as the world of the net is, IE's not playing ball.

 {literal}
        <script src="http://code.jquery.com/jquery-latest.js" type="text/javascript">
</script>
                 <script type="text/javascript">
                  var $j = jQuery.noConflict();


        $j(function() {
            $j("#button1").click(function() {
              $j("#show-hide").toggle("slow");
            });
        });?
        </script>

        {/literal}

As you all must know by now, I'm just newly coming to all this jQuery stuff, so I have no idea what could cause it.

Thanks for any help.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about prototype