Labels generated from javascript are not working in mozilla firefox.
I am creating labels using javascript in my work.It is working fine in google chrome but its not working in Mozilla firefox. And the version of firefox is 4.0 which is latest one..bu still its not working..what is the solution for this? Here is example code...Like this there are so many situations where i create labels in js.But firefox is not supprorting..why? Help me pls...Example code is:-

var placeHereHeader=document.getElementById("placeLabel");
var HeadLabel=document.createElement("label");
HeadLabel.setAttribute("id","LabelHeader");
placeHereHeader.appendChild(HeadLabel);
Labels generated from javascript are not working in mozilla firefox.
===

I am creating labels using javascript in my work.It is working fine in google chrome but its not working in Mozilla firefox. And the version of firefox is 4.0 which is latest one..bu still its not working..what is the solution for this? Here is example code...Like this there are so many situations where i create labels in js.But firefox is not supprorting..why? Help me pls...Example code is:-

var placeHereHeader=document.getElementById("placeLabel");
var HeadLabel=document.createElement("label");
HeadLabel.setAttribute("id","LabelHeader");
placeHereHeader.appendChild(HeadLabel);