为什么这不能设置文本区域的文本?
document.getElementById("code").value = "hey farmer";
我什至尝试过:document.getElementById('code').value = "hey farmer";
有没有办法使用 getElementByName 来设置值?
任何帮助表示赞赏
[html]
    <form>
        <textarea id="code" name="code">
            Lollllllll
</textarea>
    </form>