年齢:<html:select property="age" onchange="displaySelect(this)">
<html:options collection="options" property="value" labelProperty="label"/>
</html:select>如以上代码,当选择年龄后为何不执行displaySelect方法?
<html:options collection="options" property="value" labelProperty="label"/>
</html:select>如以上代码,当选择年龄后为何不执行displaySelect方法?
所以,在你的javaScript里面你肯定去获得这个age的值了,这是获取不到的,会提示你说找不到这个对象.因为他不会把property当成你html里面的name