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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -