How to pass Variable from External JavaScript to HTML Form

后端 未结 2 632
北荒
北荒 2021-01-29 13:46

I have been trying to pass a value from an external javascript file to an HTML form with no luck. The files are rather large so I am not sure I can explain it all but ill try.

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-29 14:19

    Can it be this?:

    function divElement(divCode){
    return divCode; 
    }
    
    divElement(document.getElementById('adcode').value); 
    

提交回复
热议问题