W3C home > Mailing lists > Public > public-css-testsuite@w3.org > September 2004

Hide the label with CSS

From: Marek Mazurek <mazurek@easynet.ro>
Date: Fri, 1 Oct 2004 00:18:21 +0400
Message-ID: <1824789126.20041001001821@easynet.ro>
To: public-css-testsuite@w3.org
How about hiding the label dynamically using javascript after the page has loaded?

The label would still be there for screen readers as they ignore scripts.

The markup would be identical to example 1 and the script would look something like:

var els=document.getElementsByTagName("label");

for(var i=0; (el=els[i]); i++) {

  if (el.className=="hide") {



Received on Thursday, 30 September 2004 19:20:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 19:58:11 UTC