Rails with Jquery/running into a problem

I’m going through some beginner tutorials for Jquery, and Im running
into an issue.
The whole purpose of the tutorial is to get a red box to fade out when
clicking on the click me link, this does not work for me

Could my setup be configured incorrectly?
correctly.

I put my jquery-1.3.2.js in my projects /public/javascripts folder.

I created a js script called jo.js in /public/javascripts that looks
like this:
$(document).ready(function() {
$(‘a’).click(function() {
$(’#box’).fadeout(‘slow’);
});

});

This is how I referenced the jo.js file in my html file:

index <%= javascript_include_tag "jo.js" %> <%= stylesheet_link_tag "jcss" %>
Click Me!

When i click on the click me link the box above it is supposed to fade
out, this is not happening.

Thanks

Silly me
the function I was calling should be camel cased

Didnt work => $(’#box’).fadeout(‘slow’);
This worked perfect => $(’#box’).fadeOut(‘slow’);

Good catch. A good resource for any more jQuery-related questions
is http://groups.google.com/group/jquery-en?hl=en

Good luck!

On Jun 10, 2:40 am, Zayd C. [email protected]