[Javascript] Check boxs and table row back ground colors

Steve Clay sclay at ufl.edu
Tue Apr 25 10:40:22 CDT 2006


Tuesday, April 25, 2006, 11:06:32 AM, Mike Dougherty wrote:
> loTR.className = loTR.className.replace(/\shighlighted/g,""); /* remove the class */
> Note:  that regexp is probably not 100% right (sorry)

/\s*\bhighlighted\b/g

\s* = zero or more whitespace chars
\b = word boundaries ensure not inside another word

invaluable regular expression workbench:
http://osteele.com/tools/rework/

Steve
-- 
http://mrclay.org/




More information about the Javascript mailing list