This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts-2 datetimepicker issue... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-2 datetimepicker issue..." Watch "Struts-2 datetimepicker issue..." New topic

Struts-2 datetimepicker issue...

Pradeep Adibatla
Ranch Hand

Joined: Oct 27, 2009
Posts: 336
I have 2 date pickers viz...

The things are in a form submitted by an OK button...

Now on the click of OK i call a javascript ... I am unable to get the selected data in the form in my Javascript variable...How to get it?



would lead to 'undefined'

If I had,


would give [Object HTMLSpanElement]..

what could be the error??

Ankit Garg

Joined: Aug 03, 2008
Posts: 9291

Look here...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Consider Paul's rocket mass heater.
subject: Struts-2 datetimepicker issue...
Similar Threads
Dynamic rows validation from javascript
spaces while populating using s:iterator
Edit & Delete Table
datetimepicker in struts2
selecting dynamically added rows of a table