-onClick=>'alert("work");) #### -onClick=>'alert("work")'); #### print $q->radio_group( -name => 'type', -values => [qw(old new)], -default => 'old', -onClick => 'alert("Work")', -labels => {old=> 'Current Device Type', new=>'Add Device Type'}, ); #### my %hash = ( old => 'Current Device Type', new => 'Add Device Type', ); print radio_group( -labels => \%hash, -name => 'type', -values => [values %hash], -default => 'old', -onClick => 'alert("Work")', );