May 10, 2004 #1 fluxdemon MIS Nov 5, 2002 89 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 Jun 25, 2001 3,453 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 Nov 5, 2002 89 US Stuff listed above isn't working... Upvote 0 Downvote
May 10, 2004 #4 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 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