Seeking a solution to hide the text cursor (caret) from a textarea on iOS browsers like Safari and Chrome. Despite trying the caret-color
property, it does not seem to work.
Are there any alternative methods to achieve this?
One approach I attempted is below:
.disabled_caret {
caret-color: transparent;
}
JS code implemented:
input.addClass('disabled_caret');
Here, 'input' refers to a $('textarea').
It is worth noting that this method successfully works on Android devices and desktop browsers.