Enabled editing multiple records on the same page.

Concatenated $fieldName with $id to ensure HTML tags are unique when multiple records from the same field are output on the same page and made editable.