I am trying to hide the calendar icon that appears next to a input of type date. I have no problem hiding it using css.
::-webkit-calendar-picker-indicator { display: none; }
However I only want to hide it in certain circumstances so need to hide with jquery or javascript but what ever I try it will not hide.
$("::-webkit-calendar-picker-indicator").css("display", "none");
Primarily I am only concerned with chrome.
How do I hide this webkit element using jquery?