Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Dynamic Form Controls

Some time back, I was working on some code at work where we wanted to dynamically disable and re-enable certain form elements based on other user input. Internet Explorer adds a “disabled” property to form elements that makes this simple. But Netscape 4.x doesn’t.

I eventually came up with some Javascript code that more-or-less simulates the ability to disable form elements in NS4. If anybody is interested, feel free to use my code in your own projects.

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

%d bloggers like this: