Bookmark Topic Watch Topic
  • New Topic

html:submit.... problem  RSS feed

 
Priyanka Chopda
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi, I have very simple problem.
I have this javascript which generated today's date and on "onclick" event will display this date in textbox. But when I try this I keep on getting error at <html:submit on click="today(this.form"> object doesn't support this property??Can anybody tell me what's wrong?
Thanks in advance
-PC
 
Junilu Lacar
Sheriff
Posts: 11156
160
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is a JavaScript question. I suspect it's because this is interpreted as the button, not the document. Try passing document.forms[0] instead.
Moving to the JavaScript forum.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
This is already here....locking it/
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!