I\'m using Colorbox to show the html content of hidden divs on my page. I can get this to work perfectly with the following:
$(\"a.colorbox\").colorbox({width:\
return "#" + elementID;
will have the desired effect as David says.