This is my code:
JS
<Script Language="JavaScript">
function add1(x)
{
var oImg=document.createElement("img");
oImg.src=x;
document.getElementById("test").appendChild(oImg);
}
</Script>
HTML
<body>
<div>
<textarea id="test" rows="10" cols="50"></textarea>
<input type="radio" name="emotion" id="sad" />
<label for="sad"><img src="images/tango_face_sad.jpeg" alt="I'm sad" onclick="add1(this.src)" /></label>
<input type="radio" name="emotion" id="happy" />
<label for="happy"><img src="images/blush.jpeg" alt="I'm happy" onclick="add1(this.src)"/></label>
</div>
</body>
It runs on IE fine but does'nt work on firefox. What is the problem in my code??