hi ,
My code runs fine if its written in pure html
like this
code:
--------------------------------------------------------------------------------
<html>
<head>
<script>
function today(parameter){
var d = new Date();
var todaydate= d.getFullYear()+"-"+(d.getMonth() + 1)+"-"+d.getDate();
parameter.modificationDate.value=todaydate;return false; //Set this to "true" in production
}
</script>
</head>
<body>
<form name="abc" action="#">
<input type="text" name="modificationDate">
<input type="submit" on click="return today(this.form)">
</form>
</body>
</html>
--------------------------------------------------------------------------------
but fails if used with
struts:html tag??
when I view source it gives object doesn't support this method or property at <input type="submit" value="Update Problem" on click="return today(this.form)">
any specific reason for this behavior??
thanks
-PC