<div id="allProducts" style="display:none">
  <select class="select2 wdt100" name="productId1" id="productId1">
   {foreach $product as $myproduct}
     <option value="{$myproduct->productId}">{$myproduct->productName}</option>
   {/foreach}
  </select>
 </div>