Method:
Modify the outerHTML of Input;
Specific example:
function resetInput()
{
var controls = document.getElementsByTagName('input');
for(var i=0; iif (controls[i].type=='text')
{
if(controls[i].value =="")
{
controls[i].outerHTML=" " ;
}
else
{
controls[i].outerHTML=controls[i].value;
}
}
}
}
In this way, the Input can be modified and then exported to Excel. (You cannot modify everything in one cycle, just make some modifications according to the situation!)