Forum Moderators: open

Message Too Old, No Replies

Easy JS radio button onclick question

         

mcfly

4:40 pm on Nov 14, 2003 (gmt 0)

10+ Year Member



Hi everyone,

I'm trying to add a JS function to a form such that a user will be presented with either field1 or field2 to complete depending on the value of a radio button above the fields.

I guess I'm essentially asking how I can toggle between displaying 2 pieces of html with a radio button. I'm sure this is super-easy but I'm a bit of a JS newbie and the brain's in Friday mode!

Any pointers would be much appreciated.

Cheers.

Sanenet

5:18 pm on Nov 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Mcfly,

My brains in Friday mode too, so I just sticked you the link to a page where you can get the script. (URLs being banned from forums).

Me go pub now!

mcfly

5:34 pm on Nov 14, 2003 (gmt 0)

10+ Year Member



lol, enjoy pub Sanenet :)

Cheers!