how to loop through a set of elements with a data attribute value using jquery? I tried this... alert(variableName); // works
$("SectionATable tr [data-testlog='"+variableName+"']").each(function()
{
alert("sectionA log");
});
No error shows up in firebug....
data-testlogis assigned toTRor to the childrenTDelements? and also are you missing an#?#SectionATableasSectionATablewouldn't be a tagname. also, when you are working with selectors it helps to show the html that it is using.