views:

316

answers:

1

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.

<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>

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.

Edit: IE reports that:

Object does not support specified property or method: var

var $j = jQuery.noconflict();

So is this noConflict var not IE friendly?

A: 

Some weird character encoding thing was going on, apparently }); at the end were registering as invalid characters. I re-typed it and now it's working fine :).

Kyle Sevenoaks