function loadCatalogList() {
  var options = array["catalog-1"].data;
  var select = '<option value="0" disabled="" selected>Select One...</option>';
  for (i = 0; i < options.length; i++) {
    select += '<option data-type="' + options[i].itemType + '" data-price="' + options[i].price + '" data-category="' + options[i].category + '" value="' + options[i]._id + '">' + options[i].name + '</option>';
  }
  $('select[role="item-selector"]').html(select);
}
// Function to apply item list to relevant dropdowns
Function to apply item list to relevant dropdowns
Function to apply item list to relevant dropdowns
function loadCatalogList() {
  var options = array["catalog-1"].data;
  var select = '<option value="0" disabled="" selected>Select One...</option>';
  for (i = 0; i < options.length; i++) {
    select += '<option data-type="' + options[i].itemType + '" data-price="' + options[i].price + '" data-category="' + options[i].category + '" value="' + options[i]._id + '">' + options[i].name + '</option>';
  }
  $('select[role="item-selector"]').html(select);
}
function loadCatalogList ( ) { var options = array [ "catalog-1" ] . data ; var select = '<option value="0" disabled="" selected>Select One...</option>' ; for ( i = 0 ; i < options . length ; i ++ ) { select += '<option data-type="' + options [ i ] . itemType + '" data-price="' + options [ i ] . price + '" data-category="' + options [ i ] . category + '" value="' + options [ i ] . _id + '">' + options [ i ] . name + '</option>' ; } $ ( 'select[role="item-selector"]' ) . html ( select ) ; }
Function to apply item list to relevant dropdowns
Function to apply item list to relevant dropdowns