document.createElement not working on Firefox
to this:
and now its working with all browsers
Javascript method document.createElement() worked perfectly in all browsers other than FireFox. I changed this part
1: var newElement = document.createElement("<input name='"+elementName+"' id='" + elementName + "' type='hidden'>");
to this:
1: var newElement = document.createElement("input");
2: newElement.setAttribute('name',elementName);
3: newElement.setAttribute('id',elementName);
4: newElement.setAttribute('type','hidden');
and now its working with all browsers
Comments
Post a Comment