<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
<li>10</li>
</ul>
<ul>
<li class="first-half">1</li>
<li class="first-half">2</li>
<li class="first-half">3</li>
<li class="first-half">4</li>
<li class="first-half">5</li>
<li>6</li>
<li>7</li>
<li>8</li>
<li>9</li>
<li>10</li>
</ul>
var $lis = $("ul li");
$lis.slice(0, Math.floor($lis.length/2)).addClass("first-half");