On 19/07/07, kewei xiao <[EMAIL PROTECTED]> wrote:
I am trying to add "style=display:none" in my customized select box,
but I am not sure where I should put it.
here is the code snippet:
$self->form->element( {
type => 'select',
name => 'subcountry_id',
id => 'subcountry_id',
label_loc => "$subcountry_type:",
options => ( [ {}, map { {
'label' => $_->name,
'value' => $_->subcountry_id }
} $country->subcountries->all ] ) }
Add:
attrs => { style => "display:none" },
to the list of arguments to element().
Carl
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu