<tr>
    <td>{$m}</td>
    <td>
        <input type="text" class="form-control   updateElement"   
               data-colName="drug"   value="{$drug.drug}"  
               data-tableName="drug_therapy"  data-id="{$drug.id}"/>
    </td>
    <td>
        <input type="text" class="form-control   updateElement"   
               data-colName="dose"   value="{$drug.dose}"  
               data-tableName="drug_therapy"  data-id="{$drug.id}"/>
    </td>
    <td>
        <input type="text" class="form-control   updateElement"   
               data-colName="duration"   value="{$drug.duration}"  
               data-tableName="drug_therapy"  data-id="{$drug.id}"/>
    </td>
</tr>