4
I have a list of elements, let’s say a list of rows in a table:
$('#minha_tabela tr');
There is a selector, method or overload in jQuery that I can return more than one line by passing multiple indexes?
Something like,
$('#minha_tabela tr').get(0, 2, 7);
Well, Slice is sequential, you’re saying an arbitrary list right? I’ll see if we have something more specific.
– Bacco
Hmm, yes. The index list could be arbitrary. But this I can easily bypass by giving a
sort
before applying in the methodslice
. But I’d appreciate it if you’d post something arbitrary :)– Andre Figueiredo