Revision 422a715c
Added by Sander van Leeuwen over 10 years ago
usr/local/www/classes/Form/Input.class.php | ||
---|---|---|
103 | 103 |
|
104 | 104 |
$attributes = $this->_attributes; |
105 | 105 |
if (isset($this->_name)) |
106 |
{ |
|
106 | 107 |
$attributes['name'] = $this->_name; |
108 |
$attributes['id'] = $this->_name; |
|
109 |
} |
|
107 | 110 |
|
108 | 111 |
foreach ($attributes as $key => $value) |
109 | 112 |
$html .= ' '.$key.'="'. htmlspecialchars($value).'"'; |
Also available in: Unified diff
Add id attribute to input elements