Aaron Yodaiken
Aaron Yodaiken

Reputation: 19561

disable cursor/editing but keep ability to focus

Is there anyway to achieve this that works cross-browser? (Keeping solutions to pure JavaScript, HTML, and CSS) I'm using JQuery, so JS in that would be best.

(disabled="disabled" doesn't allow focus)

Upvotes: 2

Views: 768

Answers (1)

casablanca
casablanca

Reputation: 70731

Try using the readonly attribute instead of disabled, like <input readonly="readonly" />

Upvotes: 5

Related Questions