[jQuery] Re: how to get name attribute from $(this)

2008-01-28 Thread Bhaarat Sharma
I have the following now function initMenu() { if ($.cookie('the_cookie')=='2') //comes here after refresh!! { alert('came here'); $("a").filter(".b").slideDown('normal'); //but this seems to be not working!! alert('did the sliding: ' + $("a").filter(".b").attr('nam

[jQuery] Re: how to get name attribute from $(this)

2008-01-28 Thread Bhaarat Sharma
thanks that woked! i am getting very confused as i have no prior experience with javascript either. Can you please see If im going in right direction with this? I am just trying to take this plugin http://www.i-marco.nl/weblog/jquery-accordion-menu/ and integrate cookies to it so once user hits

[jQuery] Re: how to get name attribute from $(this)

2008-01-28 Thread Matt Quackenbush
$(this).attr('name'); I think that's what you're looking for?