If you use JavaScript to add the form Element & lt; input & gt; to the table, & lt; form & gt; input & gt; included
There is a problem with IE processing the end tag in the form of "/>. As shown in the following section:
If you use JavaScript to add form elements to a table, You will find in IE "! It can be seen how bad IE is dealing with this situation. This is not the case in FireFox.
The DOM model of IE cannot be set.
The DOM model of IE cannot be correctly created. The following JavaScript code:
var radio = document.createElement(‘input’);radio.setAttribute(‘type’, ‘radio’);radio.setAttribute(‘name’, name);radio.setAttribute(“value”, value);
If you place the created ticket on the page, you cannot select the ticket in IE. FireFox does not have this problem. The solution is:
function createRadio(name, value) {if (navigator.appName.indexOf(“Microsoft”) != -1) {var radio = document.createElement(‘’);radio.value = value;return radio;} else {var radio = document.createElement(‘input’);radio.setAttribute(‘type’, ‘radio’);radio.setAttribute(‘name’, name);radio.setAttribute(“value”, value);return radio;}}
The innerHTML of the element. You can see in the DHTML reference document that IE recommends using insertRow and other methods to operate table content, while using table. innerHTML =... An error is reported in IE. FireFox does not have this problem.