aspose file tools*
The moose likes Struts and the fly likes Unable to Clear Struts DatePicker tag value using java script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to Clear Struts DatePicker tag value using java script" Watch "Unable to Clear Struts DatePicker tag value using java script" New topic
Author

Unable to Clear Struts DatePicker tag value using java script

sudhir pavan
Ranch Hand

Joined: Sep 01, 2011
Posts: 34
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

Joined: Jul 20, 2005
Posts: 10102
    
165

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.

[My Blog] [JavaRanch Journal]
sudhir pavan
Ranch Hand

Joined: Sep 01, 2011
Posts: 34
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.
 
subject: Unable to Clear Struts DatePicker tag value using java script