Hi,
i am new to JavaScript and am trying to find a way to do a select all on a Choice Control that is in a repeating section.
I have it working for only the first row if you add another row the button doesn't work for the second row. Is there a way to have a select all for all the choice buttons in the repeating section not just the first row?
Here is my javascript code that works for the first row
function selectAll()
{NWF$("#" + Site).find(":checkboxovalue='ALB']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='ECH']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='OCA']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='HDQ']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='AUR']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='MTC']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='HAM']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='WCW']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='BAR']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='CLE']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='HER']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='BRN']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='DEC']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='LVC']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='CHA']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='DEN']").attr("checked",true);
NWF$("#" + Site).find(":checkboxovalue='MID']").attr("checked",true);
}