jquery - "li.menuItem:first" to "li.menuItem:second"? -
on page load, javascript makes first thumbnail active, change second, third or fourth thumbnail depending on page loading.
the javascript works first thumbnail active:
$('#menu ul li.menuitem:first').addclass('act').siblings().addclass('inact'); /* on page load, mark first thumbnail active */ i've tried changing to:
$('#menu ul li.menuitem:second').addclass('act').siblings().addclass('inact'); but didnt work..what proper code changing second, third, fourth etc..
Comments
Post a Comment