wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 9962
    
163

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to Clear Struts DatePicker tag value using java script
 
Similar Threads
Unable to implement Bootstrap Datepicker on JSP...please help
<s:datepicker + struts 2.1
struts2 dojo datepicker not working fine in i.e
JSF2.0 & Datepicker
jquery datepicker not working