Hi,
I have tried the following code to change the text field value dynamically,
Java Code:
public String getTimeValue() {
return timeValue;
}
public void setTimeValue(String timeValue) {
this.timeValue = timeValue;
}
Velocity source:
<script type = "text/javascript">
function changeField() {
document.getElementById("field").value= $timeValue;
}
</script>
<body>
<td>TimeCriteria:
<input type="text" id="field" value = "" name="timeCriteria" onChange="changeField()"> </td>
</body>
But I am Unable to get the result in the textfield , Will any body check this source please and suggest me any modification required in the code.
Thanks in Advance.