Date value in <html:text/> gone on submitting the page .How to maintain it what has been selected from calender.gif on submit?
Hi
This is my code :
<td class="smallText" width="150" style="padding-top: 10px;"><html:text property="fromDate" styleId="fromDate" maxlength="10" size="9" />
<a href="javascript:void(0)" onclick="displayCalendar();">
<img name="caldrImg" src="/stap-portal/img/calendar.gif" align="absbottom" alt="Calendar" border="0">
</a>
</td>
function displayCalendar()
{
setDateField(); // defined in calendar.js
top.calendarWindow = window.open('/stap-portal/view/static/calendar.html','cal','dependent=yes,width=260,height=260,left=200,top=300,titlebar=yes');
return;
}
I am using calender.js and onclick of image a gif image(calendar) got displayed from where we select the date .But as I submit the page ,this value reset to default value .
My application is struts based.
Please let me know the solution in javascript not in jquery