<input type="button" id="btnDate" value="" onclick="SetDate();" />
function SetDate() { var cd = new Date() var month = cd .getMonth() + 1 var day = cd .getDate() var year = cd .getFullYear() var txtID= document.getElementByID(btnDate); txtID.value=month + "/" + day + "/" + year' }
Cheers ! Abhijit
Login to post response