how to store var value in to text box
below are my syntax please help me soon.
if(document.all.fromday.value == "")
var mydate=new Date();
var year=mydate.getYear();
//alert("aaaa"+year);
if (year < 1000)
year+=1900;
var day=mydate.getDay();
var month=mydate.getMonth()+1;
if (month<10)
month="0"+month;
//alert("aaaa"+month);
var daym=mydate.getDate();
if (daym<10)
daym="0"+daym;
alert("aaaa"+daym);
datetoday="daym"+ "/" +"month"+"/"+"year"
document.all.fromday.value="<%=datetoday%>";
currently using java and jsp to store and retrive the value.
plese help me , thank you :confused: :confused:

