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