<input name="to" class="input" type="text" style="width:90%;" 
onkeyup="javascript:setUpdateFlg(this.parentNode.parentNode.rowIndex);" 
value=" <bean:write name="OuterCase" property="toCaseNo"/>"> 

解决方案 »

  1.   

    是这样吗?<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>html事件</title>
    <script type="text/javascript">
    function inputblur(oInput){
    var strDefault=oInput.getAttribute("defaultvalue");
    var strNewValue=oInput.value;
    if(strDefault!=strNewValue){
    alert("改变了!");
    }else{
    alert("没改变!");
    }
    }
    </script>
    </head>
    <body>
    abc和defaultvalue的值有后台通过,〈bean;write/>写入
    <input type="text" defaultvalue="abc" value="abc" onblur="inputblur(this)"/></body>
    </html>
      

  2.   

    呵呵,感谢楼上的,是我自己的代码由问题,睡了一觉后突然清醒了,:),onchange在页面刷新的时候是不触发的