<input type="hidden" id="itr" name="itr"   value="{$resultCount}">
<input type="hidden" id="temp_price"  value="{$totalPrice}">

{assign var=i value=1}
{foreach $result as $data}
<div class="col-md-3" id="visitInvDiv{$i}">
    <a class="btn red btn-xs wds7 deleteVisitInv " style="padding: 0; margin-left: -25px; margin-top: -11px;"  href="#" data-itr="{$i}"  >
        <i class="fa fa-close"></i> 
    </a>
    <input  class="form-control wds90"  type="text"  value="{$data.name} [{$data.price}]" disabled="" name="selectedName{$i}" style="display: inline;">
    <input  class="form-control"  type="hidden"  value="{$data.invId}"  name="selectedId{$i}">
    <input  class="form-control"  type="hidden"  value="{$data.price}"  name="selectedPrice{$i}" id="selectedPrice{$i}">
    <input  class="form-control"  type="hidden"  value="{$data.offerId}"  name="selectedOffer{$i}">
</div>
{capture assign=i}{$i+1}{/capture}
{/foreach}
