I am trying to figure out the correct syntax for nesting two loops within each other in jQuery. The first loop should iterate over each table in an HTML page that does not have any IDs or classes, while the second loop should go through each table row of the currently targeted table by the first loop.
My current jQuery code is not working and I suspect it may be due to incorrect syntax. Here is what I have:
$(document).ready(function(){
$('table').each(function(){
$(this + ' tr').each(function{
// Change style of this table row
});
});
});