The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
strftime for JavaScript 1.2 (Default branch) iBot Software Releases - RSS News 0 04-28-2008 01:40 AM
Is there any Javascript things for Lynx? zeus Security 7 11-10-2007 06:56 PM
javascript injection fed.linuxgossip Shell Programming and Scripting 20 08-21-2007 03:46 AM
Javascript Replace Globally insania Shell Programming and Scripting 2 06-27-2007 06:51 PM
Javascript: Edit a script ? perleo Shell Programming and Scripting 1 05-23-2003 03:45 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-12-2005
Registered User
 

Join Date: Jun 2005
Posts: 31
javascript onClick help

I have two radio buttons with corresponding text boxes for input, when one is chosen I am disabling the text box for the other, is there a way to "gray out" the disabled text box using background-color or something? Any help is greatly appreciated, right now my onClick looks like this:

onClick=javascript:document.UserReg." + TEXT_ACCOUNT_NBR + ".disabled=true
Reply With Quote
Forum Sponsor
  #2  
Old 10-12-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,467
PHP Code:
// element is the textbox object
element.style.backgroundColor="#CCCCCC" 
Make a javascript function and put such code inside leaving just the function call in HTML, or it will be terribly difficult to maintain.

But this is not anyhow related to UNIX .......

Last edited by cbkihong; 10-12-2005 at 05:26 PM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0