I was able to get the value from an input type=text with code like this:
$salad_size = $form->addField('line','salad');
$salad_button->js('click')->univ()->ajaxec(
array(
$this->api->getDestinationURL(),
'generate_salad'=>true,
'salad_size'=>$salad_size->js()->val(),
));
Now I need to get a value from any out of three radio-buttons. This is the object construction:
$salad_size = $form->addField('radio','salad_size')->setValueList(array('S'=>'Chica','M'=>'Mediana','L'=>'Grande'));
I’d like to know which exactly is the method name to use instead of ‘val()’ (as it looks not to be the right one for radios).
I was unable to get the methods list from the API reference page here. Any other source of avail methods?
TIA
Have you tried is(‘:checked’) instead of val() ?