1,用内置的prototype框架时,hide()和show()方法在ie下报错(object doesn't support this property or method),firefox3正常.
改用$('suggestions').style.display = none/''后解决问题。
2,我不习惯用prototype框架,我习惯了jquery。但是我又不想浪费现成的自动验证功能。
在<html:import type="js" file="Js.prototype" /> 等的最后边加上<html:import type="js" file="Js.Ajax.jquery" />。然后在页面的js块里,jQuery.noConflict();这样jquery就不在和prototype抢占$这个函数。jquery里用jQuery('#id')代替$('#id').


