用javascript实现下拉框得到bean传过来的值
如果是文本框 <input type= "text " name= "pwIdcardNo " class= "input " value= "${tbBPwdata.pwIdcardNo} "> ,有value属性,select怎么才能得到bean穿过来的??
------解决方案-------------------- <select name= " ">
<option value= "${bean.property1} " selected> *** </option>
<option value= "${bean.property2} "> *** </option>
</select>
上面select的值为${bean.property1}
------解决方案--------------------select.value = pwIdcardNo.value;