This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Unable to Clear Struts DatePicker tag value using java script  RSS feed

 
sudhir pavan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Unable to Clear Struts DatePicker tag value using java script.

I have used Struts DatePicker Tag to select the date value. After selecting the date value then i am refreshing all the fields . But i am unable
to refresh the DatePicker tag value.

I tried to clear the datepicker using below line

document.register.elements["apptDate"].value="";

Any suggestions to clear the DatePicker value using javascript.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sudhir pavan wrote:
any suggestions.


The first thing to do would be to explain the problem you are running into, in more detail. In its present form, none of us can guess what the problem is.
 
sudhir pavan
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In My struts Application i need to get inputs from user during registration.I have given an option to clear all the input fields using script function with a button click.

I used datapicker tag to get the date value. But I am able to clear all the field values except datepicker value alone.

can you suggest me to clear the datapicker tag value using the java script.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!