I wonder if anyone knows of a simple tutorial for altering form elements depending on the content of others. For example, how would you make picking an item from a drop-down menu "fill-in" some text into a text field? Also, greying out a text field if a checkbox is not ticked would be useful.

It would need to all work on non-JS supporting browsers or for users with JS disabled.