Hallo, dobra!
Du hast den Lösungsansatz vom CSS her offenbar noch nicht ganz verstanden - die zusätzliche Klasse dient dabei im CSS als Unterscheidungsmerkmal:
...
.infoText { display: none; }
.infoTextEnabled .showyes { display: none; }
.infoTextEnabled .showno { display: inline; }
.infoTextEnabled .infoText { display: block; }
Und was Deine Frage zu http://de.selfhtml.org/javascript/objekte/regexp.htm#test@title=.test betrifft, das ist nur eine RegExp-Methode, die feststellt, ob eine RegExp zutrifft oder nicht und true oder false zurückgibt.
Gruß, LX
--
RFC 1925, Satz 8: Es ist komplizierter als man denkt.
RFC 1925, Satz 8: Es ist komplizierter als man denkt.