ronan
ronan

Reputation: 4672

Change the default caret cursor color in a textarea

I want to change the default grey colored caret cursor to black for the following textarea code

<div class = "">
    <form:textarea class="textarea-large span12" path=" " placeholder="Type Here" " />
</div>

Any suggestions?

Upvotes: 1

Views: 982

Answers (3)

Praveen
Praveen

Reputation: 56501

As per my understanding, you're trying to change the mouse cursor. Usually for textarea below css is common.

textarea
{
cursor:text;
}

I think there is no option to change the color of the mouse. For more option check W3C School.

Upvotes: 1

oezi
oezi

Reputation: 51797

you can create a custom cursor-file and use that for textareas:

textarea {
    cursor: url(cursor.cur);
}

take a look at this great article about this topic - it's about 5 years old, but still up to date.

Upvotes: 1

AMADANON Inc.
AMADANON Inc.

Reputation: 5919

You want to add style="cursor: pointer" to the textarea attributes (e.g. before class=...)

I think that's "caret" - a full list of pointers is available on the web

Upvotes: 2

Related Questions