kchoi
kchoi

Reputation: 1215

Blinking Cursor in the textarea

Does anyone know how to make a cursor blink in the textarea even before you click on it?

Like https://medium.com/p/new-post

Upvotes: 0

Views: 5835

Answers (3)

gentlyawesome
gentlyawesome

Reputation: 172

I would suggest that you download a blinking gif then put it as backround of your text area to make it blink. Then when you type it will go away.

Add bootstrap form like this to clone the same display: jsfiddle

<textarea class="form-control" placeholder="Tell your story.." rows="3" autofocus></textarea>

Bootstrap forms: bootstrapform

Upvotes: -1

Jatin
Jatin

Reputation: 3089

Probably the styling is set to show no cursor. And try below examples:

Cursor examples in CSS

Upvotes: -1

zxc
zxc

Reputation: 415

You can use autofocus to accomplish this, check out w3schools for basic information on it.

<input type="text" name="fname" autofocus>

Upvotes: 3

Related Questions