CGI.pmでdisabledが効かなくなった?

1
2
<label><input type="radio" name="new_class" value="1" disabled="disabled" tabindex="1" />1</label>
<label><input type="radio" name="new_class" value="2" tabindex="2" />2</label>
                             <p>調べていくと、どうも仕様が変わったらしい。<br />

…というよりも、-disabledオプションが正式に採用されたと言うべきなのか。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
        $cgi->radio_group(
            -name    => "new_class",
            -value   => 1,
            -labels  => {1 => 1},
            -default => "none",
            -disabled => "disabled",
        ),
        $cgi->radio_group(
            -name    => "new_class",
            -value   => 2,
            -labels  => {2 => 2},
            -default => "none",
        ),
1
2
3
4
5
6
        $cgi->radio_group(-name=>'group_name',
                            -values    => ['eenie','meenie','minie','moe'],
                            -default   => ['moe'],
                            -linebreak => 'true',
                            -disabled  => ['moe'],
        ),

Comments

comments powered by Disqus