demo地址:http://www.my-demo.info/question/blur.html
page title function update_shopping_cart(){ var form=document.getElementById('shopping_cart_form'); if(typeof form !='undefined'){ var inputs=form.getElements('input[name=cart_quantity[]]'); inputs.addEvent("click",function (){ this.store("old_value",this.value); }); inputs.addEvent('blur', function (){ if(this.value != this.retrieve("old_value")){ form.submit(); } }); }}window.addEvent("domready",function(){ update_shopping_cart();});
回复讨论(解决方案)
var form=$('shopping_cart_form');
为什么ie6不能用document.getElementById('shopping_cart_form');
换jquery吧。
查看更多关于mootools写的函数ie6报错,为什么?_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did104443