Alter and set a id attribute for a field in drupal 7
You will want to implement template_preprocess_field() in your theme's template.php

Also helpful to you will be the drupal.org documentation on Overriding Themable Output.