Identify form control id in Drupal 7 Forms API
You can add id to your form like this,

$form['#attributes'] = array('id' =&gt; 'myid');


Also if you want to add class,

$form['#attributes']['class'][] = 'myclass';