The code works on IE but not in Mozilla. I have a table and i am trying to get the value of one of the textfields.
For eg. var name = document.getElementById("name").value;
Is there any other way .. how can i make changes to this script
Brandoe85
02-04-2005, 06:44 AM
Lets see the script, and then expain exactly what you need help with.
liorean
02-04-2005, 06:50 AM
Well, the obvious question is: Does there exist an element with an id attribute with the value "name" in the document?
meena
02-04-2005, 06:51 AM
I am trying to covert a RGB color scheme to CMYK code.
I have a color palette ...where it picks up RGB colors. The moment the user selects the RGB color, corresponding CMYK values shud be posted in four text fields. Now i have the C value and just need to put the same in the textfield whose name is cyan.
so my code goes this way ..
document.getElementById("cyan").value= C;
This works in IE, but in Firefox, gives an error document.getElementById("cyan").value has no properties
liorean
02-04-2005, 07:00 AM
Insufficient data for us to say anything - show us the source or link to it.
jmccaskill
02-04-2005, 01:51 PM
Maybe the element has a name attribute but not an id attribute. getElementById is supposed to return the element with the specified id, but IE will also return an element with that name.