Is there a way to use jQuery to get multiple elements by index — something like .eq(), but where you can pass in an array instead of a single index? Something like this:
var arrIndexes = [0, 4, 5];
var stuff = $("#datatable tbody tr").eq(arrIndexes).css('background-color', 'red');
just use the first argument in filter (index) and look it up with indexOf
demo: http://jsbin.com/ivexut/1/
you may need to add the function indexOf if you are in need of older browsers: https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Array/indexOf