
<div id="productIdDiv_re_{$itr}" style="display: inline">
    <input type="hidden" name="proIsOptic_re_{$itr}" id="proIsOptic_re_{$itr}" value=""/>
    <select class="select2 wdt300 productchange_re" data-itr="{$itr}" name="product_re{$itr}" id="product_re{$itr}">
        {if $catData->isOptic == 2}
        <option value="-1">اختر مقاس/لون</option>
        {else}
        <option value="-1">اختر منتج</option>
        {/if}

        {foreach $products as $data}
        <option value="{$data->productId}" data-optic="{$data->isOptic}">{$data->productName}</option>
        {/foreach}
    </select>
    <div id='tobedel'>
        <input type="hidden" name="current_itr" id="current_itr" value="{$itr}"/>
    </div>
    <input type="hidden" name="aw_i_f_re_{$itr}" id="aw_i_f_re_{$itr}" value="{$aw_i}"/>
    <input type="hidden" name="tabindexnum_f_re_{$itr}" id="tabindexnum_f_re_{$itr}" value="{$tabindexnum}"/>


</div>
{literal}
<script>
    var rowitr = $('#current_itr').val();
    $('#tobedel').remove();
    $('#product_re' + rowitr).select2();

</script>
{/literal}