9a1687b6341af06ee8e0746a9a502ba09cee8284
lrnassar
  Tue Apr 7 16:11:57 2026 -0700
Add missing form labels and aria-labels across hgTables pages and main site search. refs #37343

Main page search bar (index.html): aria-label on search input.
hgTables main page (mainPage.c): aria-label on Galaxy/GREAT checkboxes,
fix Position label to target radio button instead of text input, aria-label
on position text input.
hgTables user regions (userRegions.c): aria-label on paste textarea and
file upload input.
hgTables filter page (filterFields.c): aria-label on all per-field filter
dropdowns and text inputs across string, numeric, integer, and enum field types.
hgTables intersect page (intersect.c): label elements on all 6 radio buttons
and 2 complement checkboxes, aria-label on threshold text inputs.

diff --git src/hg/hgTables/mainPage.c src/hg/hgTables/mainPage.c
index fa9488268e2..7901c648c7f 100644
--- src/hg/hgTables/mainPage.c
+++ src/hg/hgTables/mainPage.c
@@ -436,35 +436,37 @@
     }
 
 
 
 if (!cfgOptionBooleanDefault("hgta.disableSendOutput", FALSE))
     {
     hPrintf(" Send output to ");
     struct dyString *dy = dyStringNew(256);
     dyStringAppend(dy, 
 	"document.getElementById('checkboxGreat').checked=false;");
     if (isGenomeSpaceEnabled())
 	dyStringAppend(dy, 
 	      	  "document.getElementById('checkboxGenomeSpace').checked=false;");
     dyStringAppend(dy, 
 	      	  "return true;");
-    cgiMakeCheckBoxWithId("sendToGalaxy", doGalaxy(), "checkboxGalaxy");
+    cgiMakeCheckBoxIdAndMore("sendToGalaxy", doGalaxy(), "checkboxGalaxy",
+        "aria-label='Send output to Galaxy'");
     jsOnEventById("click", "checkboxGalaxy", dy->string);
     hPrintf("<A HREF=\""GALAXY_URL_BASE"\" target=_BLANK>Galaxy</A>\n");
     nbSpaces(2);
-    cgiMakeCheckBoxWithId("sendToGreat", doGreat(), "checkboxGreat");
+    cgiMakeCheckBoxIdAndMore("sendToGreat", doGreat(), "checkboxGreat",
+        "aria-label='Send output to GREAT'");
     jsOnEventById("click", "checkboxGreat", "return onSelectGreat();");
     hPrintf(" <A HREF=\"http://great.stanford.edu\" target=_BLANK>GREAT</A>");
     if (isGenomeSpaceEnabled())
 	{
 	nbSpaces(2);
 	cgiMakeCheckBoxWithId("sendToGenomeSpace", doGenomeSpace(), "checkboxGenomeSpace");
 	jsOnEventById("click", "checkboxGenomeSpace", 
 	    "document.getElementById('checkboxGreat').checked=false;"
 	    "document.getElementById('checkboxGalaxy').checked=false; return true;");
 	hPrintf(" <A HREF=\"http://www.genomespace.org\" target=_BLANK>GenomeSpace</A>");
 	}
     }
 
 hPrintf("</DIV></TD></TR>\n");
 }
@@ -787,32 +789,34 @@
         makeRegionButtonExtraHtml(hgtaRegionTypeGenome, regionType, "DISABLED");
         hPrintf("&nbsp;<span"NO_GENOME_CLASS">genome (unavailable for selected track)</span>"
                 "&nbsp;");
         }
     else
         {
         makeRegionButton(hgtaRegionTypeGenome, regionType);
         hPrintf("&nbsp;<label for='%s_%s'>Genome</label>&nbsp;", hgtaRegionType, hgtaRegionTypeGenome);
         }
     if (doEncode)
         {
 	makeRegionButton(hgtaRegionTypeEncode, regionType);
 	hPrintf("&nbsp;<label for='%s_%s'>ENCODE Pilot regions</label>&nbsp;", hgtaRegionType, hgtaRegionTypeEncode);
 	}
     makeRegionButton(hgtaRegionTypeRange, regionType);
-    hPrintf("&nbsp;<label for='%s'>Position</label>&nbsp;", hgtaRange);
-    hPrintf("<INPUT TYPE=TEXT NAME=\"%s\" id='%s' SIZE=26 VALUE=\"%s\">\n",
+    hPrintf("&nbsp;<label for='%s_%s'>Position</label>&nbsp;",
+        hgtaRegionType, hgtaRegionTypeRange);
+    hPrintf("<INPUT TYPE=TEXT NAME=\"%s\" id='%s' SIZE=26 VALUE=\"%s\""
+        " aria-label='Position range'>\n",
     	hgtaRange, hgtaRange, range);
     jsOnEventById("focus", hgtaRange, 
 	jsRadioUpdate(hgtaRegionType, "regionType", "range"));
     cgiMakeButton(hgtaDoLookupPosition, "Lookup");
     hPrintf("&nbsp;");
     if (userRegionsFileName() != NULL)
 	{
 	makeRegionButton(hgtaRegionTypeUserRegions, regionType);
 	hPrintf("&nbsp;<label for='%s_%s'>Defined regions</label>&nbsp;", hgtaRegionType, hgtaRegionTypeUserRegions);
 	cgiMakeButton(hgtaDoSetUserRegions, "Change");
 	hPrintf("&nbsp;");
 	cgiMakeButton(hgtaDoClearUserRegions, "Clear");
 	}
     else
 	cgiMakeButton(hgtaDoSetUserRegions, "Define regions");