Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to Clear Struts DatePicker tag value using java script

 
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
Marshal
Pie
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic