david_va
10-18-2006, 03:24 PM
I am trying to take an input element and replace it with the value from a table. My problem is that when I replace the element, it becomes a text field instead of an input text field.
Following is the input text code:
<td>
<bean:define id="errlastname" name="userEnrollmentHeaderForm"
property="errorLastName" type="java.lang.String"/>
<div id="lastName"><html:text property="lastName" size="50" maxlength="50"
styleClass="<%= errlastname %>"/></div>
</td>
Following is the java script that loads the last name value
document.getElementById("lastName").innerHTML = ln;
When last name is replaced, the input text field actually becomes a text field and users can not make any changes.
Following is the input text code:
<td>
<bean:define id="errlastname" name="userEnrollmentHeaderForm"
property="errorLastName" type="java.lang.String"/>
<div id="lastName"><html:text property="lastName" size="50" maxlength="50"
styleClass="<%= errlastname %>"/></div>
</td>
Following is the java script that loads the last name value
document.getElementById("lastName").innerHTML = ln;
When last name is replaced, the input text field actually becomes a text field and users can not make any changes.