javascript - How to get the auto-fill value of input
大家讲道理
大家讲道理 2017-05-16 13:25:57
0
6
550

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

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all (6)
洪涛

How did you verify it?

    Ty80

    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

              Latest Downloads
              More>
              Web Effects
              Website Source Code
              Website Materials
              Front End Template
              About us Disclaimer Sitemap
              php.cn:Public welfare online PHP training,Help PHP learners grow quickly!