无法在IE6的输入栏中输入文字?

时间:2010-03-25 12:42:45

标签: internet-explorer-6 input

请告诉我如何在IE6的输入栏中输入文字?

2 个答案:

答案 0 :(得分:0)

删除readonly和/或disabled属性。

document.getElementById('yourInputId').readonly = '';
document.getElementById('yourInputId').disabled = '';

或:

document.getElementById('yourInputId').removeAttribute('readonly');

答案 1 :(得分:0)

使用jquery

$('#id').attr("disabled", false); 

$('#id').removeAttr("readonly"); 

如果是你的意思?

相关问题