There's no need to shout, we can hear you OK. :-)

Take out the . after jQuery (in both places). Also add a semicolon at the
end for safety.

jQuery(document).ready(function () {
    jQuery('#regpage h3 > a').click(function () {
        alert('hello');
        return false;
    });
});

A tip for next time: Instead of trying to figure out what is wrong with your
code, start with a working example and then change it to do what you need,
one step at a time. If it stops working, you'll know the change you just
made is what broke it.

-Mike

> From: DanDaBeginner
> 
> I have been searching on the net for 5 hours already but 
> can't find an answer.. PLEASE SOMEBODY HELP ME!
> 
> the firebug is giving me this error:
> XML filter is applied to non-XML value (function (selector, 
> context) {return new (jQuery.fn.init)(selector, context);})
> 
> this was just the only jQuery code that I have:
> 
> jQuery.(document).ready(function () {
>     jQuery.('#regpage h3 > a').click(function () {
>         alert('hello');
>         return false;
>     });
> })

Reply via email to