Avatar of maqskywalker
maqskywalker
 asked on

jquery prevent textbox clear

i'm using the jquery masked input plugin
http://digitalbush.com/projects/masked-input-plugin/

In my jquery code i currently set the date mask like this and it works fine:

$('.StartDate').mask("99/99/9999");

I have 3 textboxes who have class="StartDate" set on them.
So the mask gets applied to the three textboxes.

On page load they have default values of

10/12/2017
10/13/2017
10/14/2017

But I noticed that when I click the left mouse button in one of the textboxes. The default values gets cleared out from the other two textboxes.

Do you guys know what jquery event gets fired when I click inside a textbox with the left mouse button?

How do I prevent the textboxes from clearing the default values ?
JavaScriptjQuery

Avatar of undefined
Last Comment
maqskywalker

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Ryan Chong

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Anthony Pangilinan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Ryan Chong

do you need further assistance here?
Ryan Chong

as proposed
maqskywalker

ASKER
Please close. Case has been resolved. Thanks.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23