Почему не получается удалить атрибут у тега с помощью JavaScript?
У меня есть список элементов с атрибутом sdval="", все атрибуты элементов td нужно удалить, решил воспользоваться JS.
В консоли пишу:
$('td').removeAttribute("sdval")
undefined
document.getElementsByName('td').removeAttribute("sdval")
VM158:1 Uncaught TypeError: document.getElementsByName(...).removeAttribute is not a function at <anonymous>:1:34