PortalP PortalP - 15 days ago 6
HTML Question

Oops. - how did i break this snippet?

I have this snippet. I'm pretty sure all i did was change the jquery text to a $. When i did this and saved. It broke the snippet. Then I went back and changed all the $ symbols back to the text jquery. - but than it still didn't work.

Do you see anything wrong with this code? I obviously shouldn't of touched it haha.

jquery('#hideshow').live('click', function(event) {
jquery('#secondary').toggle('show');
jquery(".line, .line2").toggleClass("line line2");
});

Answer

You have mis-spelled jQuery - small j capital Q.