0
私はシンプルな選択いくつかのオプションを持つ選択します。それから私は隠された入力を持っています。選択して非表示
選択したオプションで非表示の入力を評価したいと考えています。
もしそうなら:
<select id="type" name="type">
<option value=""><fmt:message key="select.value" bundle="${g}" /></option>
<option value="0"><fmt:message key="intermediary.document.attachment.logo" bundle="${i}" /></option>
<option select="selected" value="RISKASSESS"><fmt:message key="intermediary.document.attachment.riskassess" bundle="${i}" /></option>
</select>
私はこれをしたい:
<input type="hidden" id="type" name="type" value="ADVPF3" />
誰かが私を助けることができますか?どうも。
Valorize?ハァッ?あなたはバリデーションを意味しますか? – Crowes
「選択に基づいて値を設定する」という場合は、[this so question](http://stackoverflow.com/questions/815687/javascript-to-set-hidden-form-value-on)をご覧ください。 -drop-down-change) – algrebe