javascript - remove all calendar icon for input disabled -


i use in page datepickers each input needs it,

but sometimes, somefields disabled.

i remove calendar , there datepicker icon if inputs disabled

i've tried that

if($(".datepicker").prop('disabled')){    $(this).removeclass('datepicker'); } 

in document.ready function, etc...

but not work

also, datepicker icon has a specific class

<img class="ui-datepicker-trigger" src="images/calendar-day.png" alt="..." title="..."> 

all need remove picture input disabled because, icon users can open datepicker , change date.

anykind of appreciated.

use css rule:

input.hasdatepicker[disabled] + img.ui-datepicker-trigger {      display: none; } 

Comments

Popular posts from this blog

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -