2009/2/4 Dermot :
> 2009/2/4 Carl Franks :
>> 2009/2/4 Dermot :
>>> Hi,
>>>
>>> Is it possible to set the 'selected' attribute on a option element?
>>> I have tried selected => 1 and selected => 'selected' but nether give
>>> me the effect.
>>
>> Like any other field, you just need to call:
>>$
2009/2/4 Carl Franks :
> 2009/2/4 Dermot :
>> Hi,
>>
>> Is it possible to set the 'selected' attribute on a option element?
>> I have tried selected => 1 and selected => 'selected' but nether give
>> me the effect.
>
> Like any other field, you just need to call:
>$field->default( $value )
>
>
2009/2/4 Dermot :
> Hi,
>
> Is it possible to set the 'selected' attribute on a option element?
> I have tried selected => 1 and selected => 'selected' but nether give
> me the effect.
Like any other field, you just need to call:
$field->default( $value )
where $value == the selected option's