jquery - disable sj:datepicker Struts 2 -


i have folowing date picker

<sj:datepicker     id="dateto_id%{index}"       name="billingitems[%{index}].dateto"      value="%{billingitems[#index].dateto}"       displayformat="dd.mm.yy"     cssclass="customdatepicker"      buttonimage="/images/icons/calendar-blue.png"     parenttheme="css_custom"     disabled="true"  /> 

but problem :i can still click on image. , open datepicker.

opening datepicker

what solution problem ?

edit:

some fields need stay editable. enter image description here

try using this

$("button.ui-datepicker-trigger").attr("disabled", "disabled"); 

or can use this

$('#your_datepicker_id').datepicker('disable'); 

Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -