Ok, but based on what factor you will disable this option?
I guess you still can do it with jquery.
Give a look here:
http://stackoverflow.com/questions/1318802/enabling-and-disabling-radio-buttons-depending-on-user-selection
--
Renato de Freitas Freire
ren...@morfer.org
On Tue, Nov 9, 2010 a
>
> Do you want to add a radio input disabled or disable some option based on
> some data?
>
Yes, I do want to "disabled" some radio buttons. But, what if the "options"
is under an array?
EX:
$ccbanks = array(
"VISA" => "VISA",
"MasterCard" => "MasterCard",
"A
Do you want to add a radio input disabled or disable some option based on
some data?
if is the first option:
input('Shipping.shipping_mode', array(
//'div' => false,
'class' => 'sepradio',
//'label' => false,
'legend' => false,
'type' => 'radio',
'DISABLED' => 'DISABLED',
'options' => $shippingmod
I think, this is not possible? I do not want to use $form->radio()
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: http://www.louiemiranda.com
On Mon, Nov 8, 2010 at 3:51 PM, Louie Miranda wrote:
> I have this array...
>
> $ccbanks = array(
> "VISA" => "VISA",
> "
I have this array...
$ccbanks = array(
"VISA" => "VISA",
"MasterCard" => "MasterCard",
"AMEX" => "AMEX");
And my view...
input('Shipping.shipping_mode', array(
//'div' => false,
'class' => 'sepradio',
//'label' => false,
'legend' => false,
'type' => 'radio',
'