Version 0.9.5 beta - fixed the checked attribute for radio buttons, also fixed the value field for the radio button

This commit is contained in:
Stephan Kasdorf
2020-09-29 22:23:16 +02:00
parent 419e047bc3
commit 5f3c449123

View File

@@ -15,7 +15,8 @@ class TypeRadio extends FormAttributes implements IForm
self::FORM_NAME => '',
self::FORM_VALUE => '',
self::FORM_ATTRIBUTE_CLASS => '',
self::FORM_ATTRIBUTE_ID => ''
self::FORM_ATTRIBUTE_ID => '',
self::FORM_ATTRIBUTE_CHECKED => ''
);
@@ -33,7 +34,7 @@ class TypeRadio extends FormAttributes implements IForm
*/
private function _setElement( )
{
$this->_element = '<input type="radio" name="NAME" value="VALUE" ID CLASS>' . 'VALUE<br>' . "\n";
$this->_element = '<input type="radio" name="NAME" value="VALUE" checked="CHECKED" ID CLASS>' . "\n";
}