I want to set the ID
attribute of an element of a form that I'm creating in a module using the form API.
//Here is an example
$form['name'] = array(
'#type' => 'item',
'#title' => t('Title'),
'#attributes' => array(
'id' => 'your-id',
),
);