<div class="all">
    <input type="hidden" id="patientId" value="{$patientId}"/>
    <!--    <input type="hidden" id="tdate" value="{$today}">-->
    <input type="hidden" id="controllName" value="operativedetails"/>
    <input type="hidden" name="hosturl" id="hosturl" value="{$hosturl}"/>
    <br>
    <select class="form-control updateOp" id="childj" name="child"  select-tableName="operativedetails" data-tableName="operativedetails" data-maintable = "midlinejncision" data-colName="midlineid" data-id="{$operativedetails.id}">
        <option value="">choose</option>
        {foreach  $midline as $data}
        <option value="{$data.id}" {if {$data.id} eq {$operativedetails.midlineid} } selected {/if}>{$data.name}</option>
        {/foreach}
        <option value="-2" class="deleteoptincompo">Delete</option>
    </select>

</div>