May 10, 2004 #1 fluxdemon MIS Joined Nov 5, 2002 Messages 89 Location US I need to find a way to change the background color of input text boxes. Is my syntax close to correct? var tmpName = autoquote.elements; ... tmpName.style.backgroundColor="yellow";
I need to find a way to change the background color of input text boxes. Is my syntax close to correct? var tmpName = autoquote.elements; ... tmpName.style.backgroundColor="yellow";
May 10, 2004 #2 jemminger Programmer Joined Jun 25, 2001 Messages 3,453 Location US looks good from memory... ========================================================= -jeff http://www.jeffemminger.comtry { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); } Upvote 0 Downvote
looks good from memory... ========================================================= -jeff http://www.jeffemminger.comtry { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
May 10, 2004 Thread starter #3 fluxdemon MIS Joined Nov 5, 2002 Messages 89 Location US Stuff listed above isn't working... Upvote 0 Downvote
May 10, 2004 #4 BillyRayPreachersSon Programmer Joined Dec 8, 2003 Messages 17,047 Location GB You haven't said what browser it's not working in... But some browsers require a full DOM path to the form: Code: var tmpName = document.forms['autoquote'].elements[i]; Hope this helps, Dan Upvote 0 Downvote
You haven't said what browser it's not working in... But some browsers require a full DOM path to the form: Code: var tmpName = document.forms['autoquote'].elements[i]; Hope this helps, Dan