Quote:
quote:Originally posted by Dj Kat
Hi,
I need to make a type="hidden" using javascript
the thing is when I use this:
document.getElementById('currentBox' + Current).checked=true;
it will work in firefox but it doesn't in Firefox.
Does someone knows the solution
thnx
|
You are to ahve two unrelated pieces of code, you can create a hidden element by using:
Code:
var oHidden = document.createElement("input");
oHidden.type = "hidden";
//append element to parent:
document.getElementById("parentDiv").appendChild(oHidden);
Your other code seems to be tring to access a checkbox, not a hidden field.
--
Joe (
Microsoft MVP - XML)