Javascript question

I created this form image this is a screenshot of the area of the form i am working onAnd in the field “due date” I added the custom format

if (!event.value) {
event.value = "DATE";
event.target.display = display.noPrint;
event.target.textColor = color.ltGray;
event.targer.fontWeight = 'bold';
} else {
event.target.display = display.visible;
event.target.textColor = color.black;
}

Basically what it does is that it’s light grey originally, and it tells the user to input a “DATE.” When the user inputs a date, the word “DATE” disappears and the font turns black. This works fine.. .but what doesn’t work is making the text bold
alafairAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
Typo. There is a r where a t should be. It's target, not targer.
alafairAuthor Commented:
oops I know even when corrected does not work how can I edit my orig post?
alafairAuthor Commented:
if (!event.value) {
 event.value = "DATE";
 event.target.display = display.noPrint;
 event.target.textColor = color.ltGray;
 event.target.fontWeight = 'bold';
 } else {
 event.target.display = display.visible;
 event.target.textColor = color.black;
 }
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

ste5anSenior DeveloperCommented:
What is target? What frameworks do you use?
alafairAuthor Commented:
the target is the field where the date is, when someone enters a date I want it to be bold but otherwise just display the word date in a light gray faded word date, Frameworks?
Julian HansenCommented:
And if you do

event.target.style.fontWeight = 'bold'

Open in new window

alafairAuthor Commented:
I'm actually helping someone so I will have him try that and will let you know.  Thank you
alafairAuthor Commented:
ok event.target.style.fontWeight = 'bold' did not work, how about an event to change the font to a font that is already bold like helvetica bold?
Julian HansenCommented:
Without a context for where event comes from we can only guess.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.