function inputProducts(data){
  data = sortAsc(data, "name")
  var htm = selectInput(data, "_id", "name")
  $('select[role="product-list"]').each(function() {
    $(this).html(htm);
  });
  var template = $('#heroTemplate').html().replace('<option value="0" disabled="">Select One...</option>', htm);
  $('#heroTemplate').html(template);
}
// Append the Product Sku to Product Hero dropdown list
Append the Product Sku to Product Hero dropdown list
Append the Product Sku to Product Hero dropdown list
function inputProducts(data){
  data = sortAsc(data, "name")
  var htm = selectInput(data, "_id", "name")
  $('select[role="product-list"]').each(function() {
    $(this).html(htm);
  });
  var template = $('#heroTemplate').html().replace('<option value="0" disabled="">Select One...</option>', htm);
  $('#heroTemplate').html(template);
}
function inputProducts ( data ) { data = sortAsc ( data , "name" ) var htm = selectInput ( data , "_id" , "name" ) $ ( 'select[role="product-list"]' ) . each ( function ( ) { $ ( this ) . html ( htm ) ; } ) ; var template = $ ( '#heroTemplate' ) . html ( ) . replace ( '<option value="0" disabled="">Select One...</option>' , htm ) ; $ ( '#heroTemplate' ) . html ( template ) ; }
Append the Product Sku to Product Hero dropdown list
Append the Product Sku to Product Hero dropdown list