I'm using the following code to set all classes of the element to display:none with the exception of the first instance.
How would I modify the code to set the classes all the elements todisplay:none with the exception of the SECOND instance only.
$(document).ready(function () {
$('selectorForElement').slice(1).css('display', 'none');
});