How to have transparent fonts except for the 'text-caret' in a textarea?

后端 未结 4 753
难免孤独
难免孤独 2021-02-13 19:36

I have a simple textarea and I need to make transparent letters while allowing the text-caret to be visible. When I apply the following rules then I get invisible caret:

4条回答
  •  深忆病人
    2021-02-13 20:11

    Based on your edit, if you need to just hide a textarea why don't you use jQuery $('#your_id').hide();

提交回复
热议问题