Page is a not externally linkable
Skier88 - 10:24 am on Jan 31, 2012 (gmt 0)
I'm not going to try to tell you how to design your website, but here's a solution to your original question.
function trimList(list,n) {
return (','+list+',')
.replace(','+n+',',',')
.substr(1).replace(/,$/,'');
}
// trimList('48,49,50,51',49) == '48,50,51'