Manif
11.08.2010, 08:06:14
Mam np element o klasie "vote up" albo "vote dw" pobieram klase przez $(this).attr('class'). Czy istnieje jakis prosty sposob do dobrania sie do samego "up" albo "dw" ?
skowron-line
11.08.2010, 08:07:48
substring
lub
[javascipt]
var string = 'vote up';
var part = string.split(' ');
alert(part[1]);
[/javascript]
wookieb
11.08.2010, 09:11:35
$(element).hasClass('up'); // juz wiesz czy to klasa up czy nie