javascript - document.getElementById("xxx").name = "sample" not working in firefox but works in IE -


can on one. trying set name of element dynamically.

try using setattribute.

example:

var element = document.getelementbyid("xxx"); element.setattribute("name", "sample"); 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -