What I usually do in situations like this is add in extra classes, like so:
class="menu-1-1-2" becomes class="menu menu-1-1-2">
Then you can just do:
$(document).ready(function()
$("a.menu").click(function(){
$(this).Puff(500);
return false;
});
});
Make sure you do return false in the click function, otherwise it'll
try to navigate to the existing link.
If adding the class in isn't really a choice, however, I recommend
using the [EMAIL PROTECTED] selector, detailed here:
http://jquery.com/docs/Base/Expression/CSS/
I'm no familiar with the selector that you're trying to use. That
would make your code:
$(document).ready(function()
$("[EMAIL PROTECTED]").click(function(){
$(this).Puff(500);
return false;
});
});
Let me know if that helps.
--John
On 11/22/06, digital spaghetti <[EMAIL PROTECTED]> wrote:
> Hmm, I tried that and it worked with Puff, but when I tried other
> effects such as .Highlight I keep getting errors with c & g not having
> properties. Weird
>
>
> Tane
>
> On 11/22/06, spinnach <[EMAIL PROTECTED]> wrote:
> > ..try without removing the quotes from this... $(this).Puff(500);
> >
> > digital spaghetti wrote:
> > > Ended up fixing it on my own:
> > >
> > > $(document).ready(function()
> > > {$("[EMAIL PROTECTED]|=menu]").click(function(){
> > > $("this").Puff(500)
> > > });
> > > });
> > >
> > > However, I'm not getting Puff working, but I'll fix that too.
> > >
> > >
> > > Tane
> > >
> > > _______________________________________________
> > > jQuery mailing list
> > > [email protected]
> > > http://jquery.com/discuss/
> > >
> > >
> >
> >
> > _______________________________________________
> > jQuery mailing list
> > [email protected]
> > http://jquery.com/discuss/
> >
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/