Forum Moderators: not2easy

Message Too Old, No Replies

Change instructions dynamically upon form element change/click

How easy is this?

         

Crump

7:51 am on Feb 8, 2006 (gmt 0)

10+ Year Member



I would like to dynamically update some text on a page when the users clicks on a form.

In other words I have a form with several text boxes. When a user clicks in a text box I want to have some text elsewhere on the page change, giving the user instructions on what they should enter in that text box.

I know this can't be done stricly with CSS, but thought I would post it here. Is this more of a javascript or DHTML thing? How easy is it? Any examples? Thanks.

DrDoc

7:54 am on Feb 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You would use CSS rules to hide/display the instructions, but use JavaScript to toggle the rules on/off.

Crump

1:56 am on Feb 9, 2006 (gmt 0)

10+ Year Member



[webmasterworld.com...]

Found my answer in the javascript forum.