Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Remove value from parameter in URL [Javascript]


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'


Thread source:: http://www.webmasterworld.com/javascript/4410417.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com