View Full Version : Spry Replace not allowed in ebay

07-18-2011, 11:09 PM
i have this code which is part of the dreamweaver generated spry tabbed panels Spry.Widget.TabbedPanels.prototype.removeClassName = function(ele, className)
if (!ele || !className || (ele.className && ele.className.search(new RegExp("\\b" + className + "\\b")) == -1))
ele.className = ele.className.replace(new RegExp("\\s*\\b" + className + "\\b", "g"), "");

Ebay says I have to remove the replace function... So i remove the function and when I view the page the inital tab selected is light and the other tabs dark (how its supposed to be)

But as I click on the tabs they turn light and the previous tab does NOT change back to a dark color. Eventually all the tabs are light and its hard to tell which tab is selected.

Is there some other method to use to do this same functionality besides .replace()??