开发者

prototype Event Observer not working

开发者 https://www.devze.com 2023-04-11 09:21 出处:网络
Please check what i am doing here false? Event.observe(form[\'postalcode\'], \'blur\', function(form) {returnupdateCityname(form) }(form));

Please check what i am doing here false?

 Event.observe(form['postalcode'], 'blur', function(form) {return  updateCityname(form) }(form)); 

I am getting Javascript error "handle开发者_如何学JAVA is undefined"


Give this element an ID of "postalCode", it makes it a lot easier.

   $('postalCode').observe('blur', function(e) {
        var element = e.element()        
        var myForm = element.up('form')
        return updateCityname(myForm) 
    });
0

精彩评论

暂无评论...
验证码 换一张
取 消