$(document).ready(function () { $('#playlist li.category:nth-child(14) ul').show(); $('#playlist li.category:nth-child(14)').addClass('open'); $('#playlist ul li.category:nth-child(14)').removeClass('closed'); });