views:

29

answers:

1

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)

+3  A: 

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

casablanca
I hadn't come across `readonly` before. +1 for teaching me something new =)
David Thomas