You could also do it with non-styling classes, as an alternative to
locating them.
$('div:first').data('foo', 'bar').addClass('foo');
$('.foo');
On Jul 28, 3:15 pm, Basdub wrote:
> Thanks, that should do the trick.
>
> On Jul 23, 10:44 pm, Karl Swedberg wrote:
>
>
>
> > One way to retrieve th
Thanks, that should do the trick.
On Jul 23, 10:44 pm, Karl Swedberg wrote:
> One way to retrieve them is to use the .filter() method with a
> function. for example:
>
> $('div').filter(function() {
> return $(this).data('foo') == 'bar';
>
> });
>
> --Karl
>
>
> Karl Swedbergww
One way to retrieve them is to use the .filter() method with a
function. for example:
$('div').filter(function() {
return $(this).data('foo') == 'bar';
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jul 21, 2009, at 11:29 AM, Basdub wrote:
I wan
3 matches
Mail list logo