gwt - How to hide the caret in an HTML text input field? -


if have html input field one:

<input type="text" id="mytextfield"/> 

all browsers seem show caret (insertion point) in field. is possible prevent appearing applying css or javascript?

(my reason asking input basis of gwt-ext combo box ones on http://www.gwt-ext.com/demo/#linkedcombobox - can't type in it, can still see caret, annoying).

what try disable input element , explicitly set color black:

<input type="text" disabled="disabled" style="color: black;" ... /> 

this should work gwt-ext combo box (at least did when setting attributes in firebug).


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -