Hi,
Am new to jquery and also not so proficient with . So bear with me if
it sounds silly.  I just can't get jquery to work the way its
promised.

I did these,
1. Downloaded jquery-1.2.js

2. Included it in my html. And wrote my first code as this
${document}.ready(function() {
    ${'a'}.click(function() {
        alert("Link clicked");
        ${'#main-content'}.html('<h1> Hello </h1>');
        return false;
    })
});
This didnt work. I got an error that said "missing ; before statement"

3. Changed my code to replace all ${} references with jQuery(). Though
this works, I get two alerts everytime i click a link. And content of
div with id main-content doesn't change either.

What am I doing wrong. Any help/pointer will be appreciated.

Regards
Sathya

Reply via email to