--- loncom/interface/loncommon.pm 2025/03/18 18:57:28 1.1471 +++ loncom/interface/loncommon.pm 2025/03/19 15:18:59 1.1472 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.1471 2025/03/18 18:57:28 raeburn Exp $ +# $Id: loncommon.pm,v 1.1472 2025/03/19 15:18:59 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2848,7 +2848,7 @@ Args: $hash - the elements should be 'option' => 'shown text' (shown text should already have been &mt()) $order - (optional) array ref of the order to show the elements in - $id = (optional) id for element =cut @@ -2890,7 +2890,7 @@ sub multiple_select_form { =pod -=item * &select_form($defdom,$name,$hashref,$onchange,$readonly,$id) +=item * &select_form($defdom,$name,$hashref,$onchange,$readonly,$id,$aria_labelledby) Returns a string containing a \n"; + if ($aria_labelledby ne '') { + $aria_labelledby = ' aria-labelledby="'.$aria_labelledby.'"'; + } + my $selectform = "