Re: [jQuery] How to detect an element's class name?

2006-12-12 Thread johnnybai
hi, $(".abc") or $("p.abc") you'd better to see the jquery api document:) Johnny On 12/13/06, luogz <[EMAIL PROTECTED]> wrote: Dear All, I'm a newbie of jQuery, I got a problem,can anyone give me a hand? My problem is: How can i get the class name of an element?

Re: [jQuery] How to detect an element's class name?

2006-12-12 Thread Blair McKenzie
Actually getting the class value isn't as usefull as it might seem at first glance because elements can have multiple classes - i.e. . This means that if you did get the value, you'd have to do all sorts of gymnastics to check for what you want. It's much better to use the functions built into jQu

Re: [jQuery] How to detect an element's class name?

2006-12-12 Thread Linan Wang
$().attr('class') On 12/13/06, luogz <[EMAIL PROTECTED]> wrote: Dear All, I'm a newbie of jQuery, I got a problem,can anyone give me a hand? My problem is: How can i get the class name of an element? ┈ 国忠 -Terry Luo - UED,Yahoo! China ┈┈┈

[jQuery] How to detect an element's class name?

2006-12-12 Thread luogz
Dear All, I'm a newbie of jQuery, I got a problem,can anyone give me a hand? My problem is: How can i get the class name of an element? ┈ 国忠 -Terry Luo - UED,Yahoo! China ┈ ・Y!messenger: lovinglgz ・Email: