Hi,
I am trying but still same problem is coming.please check this and give me a solution. here property means name. i cant give id for <html:text />
<select id="Types" name="Types[<%=index%>]" size="1" onChange="enableTypes('<%="Warning["+index+ "]"%>','<%="Critical[" + index + "]"%>','<%=index%>')">
<option value="First" >First</option>
<option value="Second" >Second</option> </select>
<html:text disabled="true" property='<%="Warning[" + index + "]"%>' size="8" maxlength="255" value="" />
<html:text disabled="true" property='<%="Critical[" + index + "]"%>' size="8" maxlength="255" value="" />
I havn't worked on struts.
But form elements can be referenced by their name (through form's reference) either it is text or any input element.
access text by name rather than id in my code, it will work then too.
I am sure its not a javascript problem, there might be any other problem with your code. review your code thoroughly.
Note: whenever javascript shows this type of unexpected behaviour, it might be possible you might have used any reserved word of javascript in your code. Check all the names you have given to ur controls.