
<select class="form-control updateElement "   id="exLabs{$id}"   data-id="{$id}" data-colName="external_lab" 
        data-tableName="investigationresults" >
    <option value=""> اختر معمل </option>
    {foreach $external_labs as $row}
    <option value="{$row->id}"  {if $row->id ==  $external_lab} } selected {/if}  >{$row->name}</option>
    {/foreach}
    <option value="-2" class="deleteoptincompo">حذف</option>
</select> 