input How to get the automatically filled value? The current automatically filled value cannot be verified.
Verification error message is wrong, and then it needs to be verified when selecting automatic filling.
When submitting at the beginning, it prompts that the mobile phone number cannot be empty
After automatic selection, focus focusin change blur is not triggered
You need to click the mouse again to trigger the blur event
How did you verify it?
Use the onkeyup event natively
https://github.com/tbosch/aut...
onchange event should meet your needs
onchange event will be triggered after the focus leaves the Input, and then get the value
The value in placeholder? document.getElementById('XXX').getAttribute('placeholder');
If value is worth document.getElementById('XXX').getAttribute('value');
onchange="getDefault(this)" can also be used