struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reshmi" <ra...@trinitymobility.com>
Subject problem in hiding timepicker of struts jquery datetimepicker
Date Tue, 24 Apr 2012 12:33:15 GMT
Hi all,

My codes for date time picker is

 

<sj:datepicker timepicker="true" readonly="true" label="From Date"
id="fromdate" name="fromdate" displayFormat="dd-mm-yy"
timepickerShowSecond="true"  timepickerFormat="hh:mm:ss"></sj:datepicker>

                        <sj:datepicker timepicker="true" readonly="true"
label="To Date" id="todate" name="todate" displayFormat="dd-mm-yy"
timepickerShowSecond="true" timepickerFormat="hh:mm:ss" ></sj:datepicker>

 

 

I want to display timepicker only for some cases

For that I put javascript function like this.

 

 

 

if(select1=="A")

              {

             

 

              

              document.getElementById("fromdate").timepicker=false;

              document.getElementById("todate").timepicker=false;

              }

        else 

              {

              

              document.getElementById("fromdate").timepicker=true;

              document.getElementById("todate").timepicker=true;

              

              }

 

But this is not working for for me.Any one can help me?How can I implement
it?

 

Best Regards,

Reshmi

Software Engineer | Trinity Mobility Pvt. Ltd. | Bangalore|+91-8971512535| 

trinity-logo_small

 

 


Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message