jQuery seems like it would be able to handle something like the example below fairly easily:
I have a form that includes several data fields, one of them being a select box. One of the choices in that select box is ‘other.’
When ‘other’ is selected, I’d like jQuery to display another text field for more specification of whatever ‘other’ might be. The field would be hidden unless ‘other’ is selected. My main script is written in Perl with some HTML.
You can use jQuery to install a click event handler on the checkbox, and show/hide the form element accordingly. Let’s say you have a form that looks like this: