我需要正确的语法来在彼此内部编写两个循环。第一个循环遍历没有 id 或类的 html 页面中的每个表,第二个循环遍历 jQuery 中第一个循环指定的表的每个表行。
这是我的 jQuery,但它不工作可能是错误的语法。
$(document).ready(function(){
$('table.rep').each(function(){
$(this + ' tr').each(function{
// change style of this tr
});
});
});