jsp - firefox doesn't display text value in form when selected="selected" -


firefox doesn't show form correctly (chrome , ie show same form without problem).

in firefox in first line in form text value doesn't appear.

in firefox firebug shows:

<td>   <select id="refsearchtype" size="10" name="refsearchtype">   <option selected="true" label="option1" value="option1"></option>   <option value="option2">option2</option>   <option value="option3">option3</option> </select> 

in ie view source shows:

<td> <select id="refsearchtype" name="refsearchtype" size="10">               <option value="option1" label="option1" selected="selected" />      <option value="option2">option2</option>      <option value="option3">option3</option>     </select> </td> 

my jsp code:

<td>    <form:select path="refsearchtype" size = "10">               <option value="${first}" label="${first}" selected="selected"/>      <form:options items="${searchlist}" />            </form:select>  </td> 

i tried switch value of selected= "true" or "yes" , doesn't work

ctrl+f5 doesn't work too

please advice

thank in advance

i fixed problem adding ${first} in line of option value

 <td>   <form:select path="refsearchtype" size = "10">            <option value="${first}" label="${first}" selected="selected">${first}</selected>   <form:options items="${searchlist}" />          </form:select> </td> 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -