[jQuery] Re: $("a") is not a function error

2008-10-16 Thread Karl Swedberg
Wow, that's a really, really old version of the api they're showing you over there. jQuery 1.0.3. Yikes. We stripped out all of those helper methods ages ago. Definitely use docs.jquery.com for information on the current api. Or visualjquery.com (just updated to 1.2.6). Or check out this bl

[jQuery] Re: $("a") is not a function error

2008-10-16 Thread blacque
Thank you for your reply.. I read the manual from gotapi.com. And I read, to get href attribute I need to write: $('a').href(). Hmm.. maybe I have misinterpreted the manual :) sorry... Thank you so much guys!

[jQuery] Re: $("a") is not a function error

2008-10-16 Thread ricardobeat
Pay a visit to docs.jquery.com/Attributes ! - ricardo On Oct 16, 1:04 am, blacque <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I use jquery 1.2.6. I'd like to get some attributes from a tag, but i > get some errors. Here's the jquery script: > > $(document).ready(function() { >         alert($

[jQuery] Re: $("a") is not a function error

2008-10-16 Thread MorningZ
"and the others show error" Because as the error says, ".title" and ".href" are not valid operations on a jQuery object you should use $("a").attr("title") and $("a").attr("href"); if you want to get those from your jQuery wrapped object On Oct 16, 12:04 am, blacque <[EMAIL PROTECTED]> wrote

[jQuery] Re: $("a") is not a function error

2008-10-16 Thread MorningZ
"and the others show error" Because as the error says, ".title" and ".text" are not valid operations on a jQuery object you should use $("a").attr("title") and $("a").attr("href"); if you want to get those from your jQuery wrapped object On Oct 16, 12:04 am, blacque <[EMAIL PROTECTED]> wr