jQuery/:gt(index)

解説 インデックス番号が指定した数値より大きい要素を選択
sample1
  • 要素0
  • 要素1
  • 要素2
  • 要素3
sample1code
$(function(){
  $("#sample1ul li:gt(1)").css("color", "#214587");
});
sample2
1枚目の画像 2枚目の画像 3枚目の画像
sample2code
$(function(){
  $('#s2Div img:gt(0)').hide();
  setInterval(function() {
    $('#s2Div :first-child').fadeOut().next('img').fadeIn().end().appendTo('#s2Div');
  },3000);
});