/    Sign up×
Community /Pin to ProfileBookmark

color of a cell in the table….dynamically

hi,

In my jsp..

based on a String variable value…i want to change the color of a cell in the
table….

I tried <td bgcolor='<%=…….%>’></td>

but it dint work out..

any other solutions…

to post a comment
Java

1 Comments(s)

Copy linkTweet thisAlerts:
@mdjoOct 29.2007 — Your syntax is correct. Well, is that EXACTLY what you put. Because that would give an empty cell. If you're trying to just make a box of a certain color, put an "&nbsp;" inside the cell. If you actually have some text in there, what you've done should have worked, and the problem must be that the color name or code you've given isn't valid.
×

Success!

Help @oxygenan 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 6.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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