/    Sign up×
Community /Pin to ProfileBookmark

How do I make a "readonly" input look like normal text?

I got:

[QUOTE]

<textarea class=”maxwidth” name=”description” onKeyDown=”limitText(this.form.description,this.form.countdown,100);”
onKeyUp=”limitText(this.form.description,this.form.countdown,100);”>
</textarea><br>
<span style=”color:gray;font-size:10px;”>(Maximum characters: 100)<br>
You have <input readonly type=”text” name=”countdown” size=”2″ value=”100″> characters left.</span>

[/QUOTE]

I also have an external script which is too long. The above shows how many more characters can be typed. However, the number displaying the number of characters left looks like a <input type=”text”>. How do I make it look like the normal text?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Jarrod1937Apr 30.2010 — You can use css to make the background color and set a border to the same color as the site background.
[code=php]<input type="text" style="background-color:#FFFFFF;border:solid 1px #FFFFFF;"/>[/code]
×

Success!

Help @narutodude000 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...