DOM Forms

I’ve been doing some research, thinking and testing on the subject of web forms recently. One of the things I have implemented in a CMS I co-develop (yeah I know, yet another CMS, dunno what to say) is to hide form elements until they are actually needed, based on input from the user. I use JavaScript to set the display property of elements or groups of elements. Well, I’m not the only one who’s been working on this. Over at Digital Web, there is an excellent article by Peter-Paul Koch that describes another, perhaps better, way of hiding and showing form elements. Technically I like his approach, but the use of custom attributes makes the XHTML invalid. Probably no big deal in this case, but I’d like to find some way of keeping it valid. Maybe by using classnames and checking the value of getAttribute(‘class’)? Hmm…

Posted on May 30, 2003 in JavaScript

Blog reactions: Other blogs commenting on this post

Comments

Sorry, comments are closed for this post.

Search and sponsorship

Job opportunities

Authentic Jobs: Come in, we're hiring

Job openings from Authentic Jobs

Looking for web hosting?

Try DreamHost!

Use the promo code 456BEREASTREET3 to save USD 20 when you sign up for DreamHost