Answer the question
In order to leave comments, you need to log in
How to access the a tag inside the table tag with the class class1?
How to replace the href value of a link inside a table with the class class1 ?
Tried so it does $(".class1").children("a").href="google.com";
n't work
Answer the question
In order to leave comments, you need to log in
if you don't use Jqury then you can do it like this
var element = document.querySelector('.class1 > a');
element.attr('href', 'https://toster.ru/');
var elements = document.querySelector('ul > li'); // вернёт массив в котором будут все li вложенные в тег ul
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question