Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get value of datetimepicker in javascript?

 
abi chitnis
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using datetimepicker widget in my struts2 applicaion. How do I get the value of date enterd in the javascript. I tried following but it gives me value undefined when I do document.getElementById('documentDate').value.



Thank you,

Abhi
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd assume you'd have to use the Dojo JavaScript functions to access Dojo components--I'd try checking the Dojo 0.4 documentation (which still exists, but is a bit tricky to find sometimes).

Here's some starting points:

http://dojotoolkit.org/book/dojo-book-0-4
http://download.dojotoolkit.org/release-0.4.3/
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic