in reply to Re^2: CheckBox and Radio Button
in thread CheckBox and Radio Button
Seeing if a checkbox is checked can be done using:
$checkbox->getProperty('checked');
For radio, you'll have to iterate through all the elements with the name in which you are interested and use ->getProperty('checked') until you find one that's checked. Unfortunately, there doesn't seem to be a clean way of getting all the radio elements with a given name, so you might have to iterate through all the radio elements and filter out those that don't have the name in which you are interested.
|
|---|