CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate: Re: [FishMonger] CGI.pm radio button doesn't support "id" ?: Edit Log



ningji
User

May 13, 2014, 5:16 PM


Views: 12512
Re: [FishMonger] CGI.pm radio button doesn't support "id" ?

1 more question, in your example,
if i want each of the radio has its own id,
how should i write it ?

-labelattributes => { id => ['id1', 'id2'] }),



In Reply To
In case you didn't understand what I was referring to, here's an example.


Code
#!/usr/bin/perl 

use strict;
use warnings;
use CGI qw(:standard);
use CGI::Pretty;

print header(),
start_html(),
radio_group(-name => 'group_name',
-values => ['eenie', 'meenie', 'minie'],
-default => 'meenie',
-labelattributes => { id => 'my_id' }),
end_html();




(This post was edited by ningji on May 13, 2014, 5:18 PM)


Edit Log:
Post edited by ningji (User) on May 13, 2014, 5:18 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives