Under ie8, the cursor is positioned to the left after the default value is dynamically set by input.

under ie8,
check the input box, and then
clipboard.png
inputinput

clipboard.png

clipboard.png I hope the god will help solve it. Thank you

.
Mar.06,2021

I move the cursor to the end every time

//
function setCursorPosition(tobj, spos) {
    if (spos < 0)
        spos = tobj.value.length;
    //,  
    if (tobj.setSelectionRange) {
        setTimeout(function () {
            tobj.setSelectionRange(spos, spos);
            tobj.focus();
        }, 0);
        //IE  
    } else if (tobj.createTextRange) {
        var rng = tobj.createTextRange();
        rng.move('character', spos);
        rng.select();
    }
}`
BUG
Menu