[thelist] SetAttribute IE

fstorr fffrancis at fstorr.demon.co.uk
Tue Sep 7 01:15:25 CDT 2004

Hi all

This is probably very easy, but JavaScript is not a strong point of 
mine.  I have a text input box that I want to change the background 
colour and border of.  I can get this working in Moz, but IE6 doesn't 
want to know.

this is the input box:

<input type="text" name="claim_cost" id="claim_cost" />

This is the JS:

var xs_left = document.getElementById('xs_left');
xs_left.setAttribute("style", "background-color:#ffcc00; " + "border: 
1px dotted red;");
return false;

What's wrong?



More information about the thelist mailing list