input in one text box to grey out another text box

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
edawson003
Forum Contributor
Posts: 133
Joined: Thu Aug 20, 2009 6:34 am
Location: Los Angeles, CA - USA

input in one text box to grey out another text box

Post by edawson003 »

In addition to some other fields, I have three text boxes on my sites form that are height in feet, height in inches and height in centemeters. I would like to set it up so that an entry in either one of the ft or in fields will make the cm field greyed out and vice a versa, an entry in the cm field will make the input fields forft and in greyed out (unable to make an entry). How can I set that up?
Last edited by edawson003 on Wed Oct 07, 2009 11:16 pm, edited 1 time in total.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: input in one text box to grey out another text box

Post by requinix »

What have you tried so far?
User avatar
edawson003
Forum Contributor
Posts: 133
Joined: Thu Aug 20, 2009 6:34 am
Location: Los Angeles, CA - USA

Re: input in one text box to grey out another text box

Post by edawson003 »

Honestly, I haven't tried anything. I dunno where to start. Though I read somewhere the solution may actually be client side (like Javascript or something). I actually found an article that looks promising, http://www.digital-web.com/articles/for ... e_w3c_dom/. I'll try it and see where it gets me.
Post Reply