/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] formatting Textbox’s border and background colour

I refer to this cool javascript solution

[url]http://javascript.internet.com/forms/auto-sum-form-boxes.html[/url]

I need to perform the calculation and show the result in a cell of table.
However, the result is only able to be displayed if the cell contains a textbox.
This textbox is shown as a sunken rectangle with white background colour. The cell’s colour is blue.
So I wonder whether there is a way to format/”hide” the textbox’s (sunken) rectangle so that it is like displaying the calculation result in a cell, rather than in a textbox? ie. it is still using the “<input type=text … >”

Thank you in advance for the help!

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 05.2008 — &lt;input type="text" style="border:0;background:transparent;" name="foo"&gt;
Copy linkTweet thisAlerts:
@rbh033authorOct 05.2008 — Cool! you are genius...
Copy linkTweet thisAlerts:
@rbh033authorOct 19.2008 — Hi

I have a Select dropdown box and I would like to do the same formatting when it is being disabled. I tried the same formatting but it didnt work.

Any idea how to "fine-tune"?
×

Success!

Help @rbh033 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.18,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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