I am using masked-input-plugin. Only day part need to change but month and year not need to change. Here is my code.
$("#id").mask("99/06/2017",{placeholder:"dd/mm/yyyy"});
During the input time : it seeing like dd/06/2017
but if I select the input box then remove the cursor(without pressing any number) that time it's show something like as 06/06/2017
I have seen this question and answer
I am very sorry for my poor English.
Thanks in advance.
Make use of
$('#dob').mask("00/00/0000",{placeholder:"dd/mm/yyyy"});
this will solve your problem
At last, I am able to solve the problem. I am posting this answer, so anybody can get help.
Firstly, extend the mask function of the mask input plugin. Then customized some code to solve this problem.
For the solution please visit
this link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.