I've been trying to add a custom classname to a form-item to use as a 'marker' for theming with my css file.
I've been on stackexchange/overflow and several other sites and forums, including the Drupal documentation, but found no reason why it shouldn't work.
Official documentation state the use of the attribute tag like so:
'#attributes' => array('class' => 'myclass'),
But as seen in my example below, this doesn't work or give me errors.
Am I doing something wrong?