Copy contents of one textbox to another

后端 未结 7 966
梦毁少年i
梦毁少年i 2021-02-02 00:38

Suppose an entry is made in a textbox. Is it possible to retain the same entered text in a second text box? If so, how is this done?


      
7条回答
  •  死守一世寂寞
    2021-02-02 01:25

    You can this way also used copy contents of one textbox to another

    function populateSecondTextBox() {
            document.getElementById('txtSecond').value = document.getElementById('txtFirst').value;
    }
     
    
    

提交回复
热议问题