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
Post a Comment