I’m desperately trying to combine element with the index-selector eq().
Is there anything wrong with the syntax?
function setVisibleRange(element) {
for ( -- something with i -- ) {};
$(element:eq(i).show();
};
setVisibleRange($("ul li"));
Btw, is there a better way to adress a Range of elements? Something like eq(0, 4)? The for-loop is just a workaround.
Thank you
You can call
eqwith element using.operator,Live Demo