Internet Explorer 8不允许动态创建按钮
Internet Explorer 8 not allowing dynamic creation of button
Internet explorer在我尝试动态创建按钮时显示错误。尽管它在firefox 中运行良好
var deleteButton = document.createElement('input');
ratingSliderContainer.appendChild(deleteButton);
deleteButton.setAttribute('type','button');
deleteButton.setAttribute('value','delete');
它在的第三行显示错误
一旦输入被添加到DOM中,就不能修改它的type
。试着这样重新排序你的报表:
var deleteButton = document.createElement('input');
deleteButton.setAttribute('type','button');
deleteButton.setAttribute('value','delete');
ratingSliderContainer.appendChild(deleteButton);
相关文章:
- 创建按钮,根据表单字段中的数据获取特定的URL
- 当我通过.aspx.cs创建按钮时,它不起作用
- 创建按钮不调用表单内的任何操作
- Internet Explorer 8不允许动态创建按钮
- 如何在不加载页面的情况下创建按钮事件
- 使用动态创建按钮单击事件未触发
- “创建”按钮,用于切换不包含特定文本颜色的表行的可见性
- Javascript创建按钮不会显示在HTML中
- 函数创建按钮,带有传递参数的 onclick 函数
- JavaScript jQuery Mobile 在 for 循环中创建按钮
- 火狐工具栏上的创建按钮来执行JS
- 使用 JavaScript 在 for 循环中创建按钮
- 如何创建按钮转到测验软件中的下一个问题
- 需要帮助创建按钮以激活 JavaScript 函数
- 使用javascript从服务器端的名称列表中创建按钮/href
- 如何用JavaScript用onclick创建按钮
- 创建按钮时陷入无休止的循环
- 如何覆盖剑道网格中的创建按钮单击
- 动态创建的DIV在其他创建按钮中的位置
- 创建按钮到函数Javascript