我必须移动输入元素。在变量测试中,我得到了很好的元素:
var test = $('#AttributeValue_StringRepresentation').parent('td');
但我不知道如何使用 appendChild,我试过了:
test.appenChild(document.getElementById(AttributeValueId));
test[0].appenChild(document.getElementById(AttributeValueId));
我也试过
document.getElementsByName(test)[0].appenChild(document.getElementById(AttributeValueId));
总的来说,我的想法已经完成,我找到的解决方案很少,但它现在正在运行。我没有测试变量的 ID 或任何东西,我被卡住了
最佳答案
您的代码中有错字……不是
appenChild
但是……
appendChild
关于javascript - 将 jquery 对象转换为 DOM 并使用 appendChild 函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50927710/