diff --git a/htdocs/core/class/html.formcompany.class.php b/htdocs/core/class/html.formcompany.class.php
index 4152881402670de1ac59ce682d83d69447f750d2..0ca46e0f6b5818bfbb9fdd2da1adc7adb22189fb 100644
--- a/htdocs/core/class/html.formcompany.class.php
+++ b/htdocs/core/class/html.formcompany.class.php
@@ -223,7 +223,7 @@ class FormCompany
 		$result=$this->db->query($sql);
 		if ($result)
 		{
-			$out.= '<select class="flat" name="'.$htmlname.'">';
+			$out.= '<select id="'.$htmlname.'" class="flat" name="'.$htmlname.'">';
 			if ($pays_code) $out.= '<option value="0">&nbsp;</option>';
 			$num = $this->db->num_rows($result);
 			$i = 0;