输入框值的即时变化
时间:2011-04-11 来源:孙祥
1 function immediately(){
2 var element =document.getElementById("txtnumber");
3 element.onkeyup = function()
4 {
5 if(element.value)
6 {
7 alert(element.value);
8 };
9 }
10 }
11
12 immediately();
相关阅读 更多 +
时间:2011-04-11 来源:孙祥
1 function immediately(){
2 var element =document.getElementById("txtnumber");
3 element.onkeyup = function()
4 {
5 if(element.value)
6 {
7 alert(element.value);
8 };
9 }
10 }
11
12 immediately();