How one can add li to middle of the ul.
For example if i have list like this:
1 2 3<
var middle = Math.ceil($("#myUL li").length / 2); $("#myUL li:nth-child(" + middle + ")").after('Item New');