Jump to content

[css] no caret in textarea


Guest Heat

Recommended Posts

Hi.My problem is, that i'm drawing textarea in div, and this is in another div using innerHTML function.When i display this new window i'm setting focus automaticly on this textarea. The problem is, that i can write and select text in this textarea, but caret (tinny vertical blinking line) do not appear.

Link to comment
Share on other sites

You mean the cursor, the pointer that determines the position of where new text will be inserted in the textarea? That will only appear when it is a real textarea in which can be something put in, and if it is not readonly or disabled :) Anything else doesn't allow the input of text, you should use real textarea's for that. Sorry :)You are indeed able to simulate editable content of the socalled textarea, but there will never be a cursor when it is not a real data input element, or not an very advanced script modification.Why do you want to simulate the textarea anyway? Maybe the advantage that this has over a real one can be done with the real one too, so then you won't have to care about a cursor not showing up. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...