下面的脚本适用于不在Chrome或FF中的IE。如果我把innerHTML而不是text(),它显示'undefined'。请帮我解决这个问题。
<SCRIPT type=text/javascript>
function myFunction(){
document.getElementById('el9870076').value = $('td#idProxyReqSso').text() || $('td#idReqSso').text();
document.getElementById('el9870843').value = $('td#idProxyReqLocation').text() || $('td#idReqLocation').text();
var $radios = $('input:radio[name=el9870065]');
if (document.getElementById('el9870076').value.substring(0,1) == '5')
{
$radios.filter('[value=Contractor]').attr('disabled', false);
$radios.filter('[value=Contractor]').attr('checked', true);
$radios.filter('[value=Employee]').attr('disabled', true);
}
else
{
$radios.filter('[value=Employee]').attr('disabled', false);
$radios.filter('[value=Employee]').attr('checked', true);
$radios.filter('[value=Contractor]').attr('disabled', true);
}
}
</SCRIPT>