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
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!
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($
"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
"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
5 matches
Mail list logo