0
に検証した後、私は、フォームと以下のようにドロップダウンを持っています。しかし、時に検証トリガーのいずれかの、このドロップダウンは、ページのリロード後に再作成されていないと、以下のように表示されている:私は私のjspで下記持っドロップダウンリストには、ページのリロード
:
<tr><td>
<stripes:checkbox name="policyShow" onclick="handleDisable(policyShow, policyNumber,null)"/><stripes:label for="DealerTransactionReport.policy" /></td>
<td>
<stripes:select name="policyNumber" disabled="${!actionBean.policyShow}" onchange="handleSelectedAll();">
<stripes:options-collection collection="${actionBean.policyList}" value="policyNumber" label="description" />
</stripes:select>
</td>
</tr>
が
function handleSelectedAll()
{
var select = document.forms['dealerTransactionForm'].policyNumber.options[document.forms['dealerTransactionForm'].policyNumber.selectedIndex].index;
if(select== 0)
{
document.forms[dealerTransactionForm].searchTxt.value="";
}
}
は、誰かが私はトンを解決するのですか提案してくださいことができます:私はのonchange機能を書いてみましたが、何もこれまで働いていないと私は現在、コードの下に持っています彼の問題?