Easily using a attribute$=CSS3 selector that means "ends" in your jQuery selection:
$("div[id$=/]").each(function(){
this.id = this.id.substr(0,this.id.length - 1);
});
: Adobe® Browser Lab, IE6, IE7, Firefox 2.0 Firefox 3.0, Safari 3.0. Safari 4.0 Firefox 3.5. / .