On 9/16/06, John Resig <[EMAIL PROTECTED]> wrote:
That's because you didn't pass a second argument in to .hover()
$("#menu li a")
.hover(function(){
$(this).parent().background("red");
}, function(){
$(this).parent().background("black");
});
--John
On 9/16/06, Rafael Santos <[EMAIL PROTECTED]> wrote:
> Here are the lines.
> after I move the cursor out of <a> i get the error: "g has no properties"
>
> $(document).ready( function(){
> $("#menu li a").hover( function(){
> $(this).parent().background("red"); });
> //$("#menu li a").mouseout( function(){
> $(this).parent().background("black"); });
> });
>
> //im using
> $Date: 2006-08-31 13:26:31 -0400 (Thu, 31 Aug 2006) $ * $Rev: 249
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/