javascript - Hide only the content of an input field -


i have span overlapping input field, updates content type input field.

even though positioned span on input text, can still see text little more bold , letters thicker.

enter image description here
(field nr.1- span, nr.2- without)

i tried hiding entire input field, cursor disappears, without typing confusing.

is there way hide text of input field?

just set input text invisible , cursor black by:

  #box {        color: transparent;        caret-color: black;      }
<input type="text" id="box" value="some_sample_text">

so way text invisible currsor shows up. span overlaying should want. don´t forget input field must have same size , fontsize or caret on wrong position.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -