First of all thanks for replying .
Main my problem is that iam not able to get the date value
i mean when i call below statment
In javascript
get_date(obj)
{
var pdate=doucment.frm.getElementsByName("pdate");
if (pdate! =null)
{
var pdate=doucment.frm.getElementsByName("pdate");
alert('pdate'+pdate); //pdate is getting as null
var sdate=new date(pdate.setDate(pdate.getDate)+1);
}
}
iam getting as null because iam not able to get the value of pdate
In
JSP String pdate=""
//pdate=request.getParameter("pdate")
input type="text" value="" name="pdate"
javascript:show_calendar('forms[0].pdate');
ahref="javascript:get_Date(this);"
Note: pdate iam passing input as dynamic
Sorry it may contain some syntax errors please ignore it
Thanks