hi all,
i am using the following code in my jsp as below in a <td>
<td>
<html:select property="payment" tabindex="1040"
styleId="withDrawalType" onchange="doIt(this);">
<option value="">Please Select</option>
<logic:iterate id="paymentValue" name="<%=WebConstants.getPaymentTypeListName()%>">
<option value="<bean:write name ="paymentValue"/>"><bean:write name="paymentValue" /></option>
</logic:iterate>
</html:select>
</td>
as you can see i am getting the collection from another file dynamically when my jsp is run on server.the above code works fine but the problem is
in my java script function i am changing the display as per the value in the dropdown list
normally i can give particular value is the drop down list code is like this:
<option value="Month">Month</option>
in this case i can use that
value='Month' in my java script function( single quotes in java script)
but how can i get the values if i am getting drop down list dynamically?
can you please suggest me the solution as i am halfway through?
regards and thanks in advance
i am using the following code in my jsp as below in a <td>
<td>
<html:select property="payment" tabindex="1040"
styleId="withDrawalType" onchange="doIt(this);">
<option value="">Please Select</option>
<logic:iterate id="paymentValue" name="<%=WebConstants.getPaymentTypeListName()%>">
<option value="<bean:write name ="paymentValue"/>"><bean:write name="paymentValue" /></option>
</logic:iterate>
</html:select>
</td>
as you can see i am getting the collection from another file dynamically when my jsp is run on server.the above code works fine but the problem is
in my java script function i am changing the display as per the value in the dropdown list
normally i can give particular value is the drop down list code is like this:
<option value="Month">Month</option>
in this case i can use that
value='Month' in my java script function( single quotes in java script)
but how can i get the values if i am getting drop down list dynamically?
can you please suggest me the solution as i am halfway through?
regards and thanks in advance