/    Sign up×
Community /Pin to ProfileBookmark

If a file is in the "file" input, can I make the background green?

Ok, so I have a form with a little override that makes the input (type=file) thingy invisible, so it looks like a text-input box because the TD is styled the same as the input (type=text) fields… So my issue is, when you select a file to upload, the file-name doesn’t show up because it’s invisible…

So, my TD has the ID “titlecontain” — can I make it so that “titlecontain” gets an override for the background-color to be green (not “background” but just “background-color”, and something like #0000CC will work perfectly) when a file is selected to be uploaded?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @amandaNHT 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.17,
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,
)...