I have a select box. I am auto selecting if my dynamically poulated items count is 2 (first item is space and second is a legit value)
here is my code.
But once the selection is done my onchange() event does not fire. How I can make and autoselection to fire the onchange to fire?? I tried onselect but no luck.
here is my code.
Code:
if (params.getReportCategory()!=null && params.getReportCategory().getCategoryID().equals(cat.getCategoryID())) {
selected = "selected";
} %>
<option value="<%=cat.getCategoryID()%>" <%=(allCategories.values().size()==2)?"selected":""%> ><%=StringUtils.escapeHTML(cat.getCategoryName())%></option><%
But once the selection is done my onchange() event does not fire. How I can make and autoselection to fire the onchange to fire?? I tried onselect but no luck.