Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Check boxs and table row back ground colors


  • From: sclay at ufl.edu (Steve Clay)
  • Subject: [Javascript] Check boxs and table row back ground colors
  • Date: Tue Apr 25 10:40:38 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/