用javascript,当chechbox为onclick时,textbox清空。
我这么写的:
chk.attributes[ "onclick "] = "document.getElementById( ' " + textbox.clientid + " ').text= ' '; ";
不工作。为什么?
[解决办法]
hk.attributes[ "onclick "] = "document.getElementById( ' " + textbox.clientid + " ').value= ' '; ";
把Text换成value就行了