Nutrition Facts
Item / Ingredient Name
Serving Size:
1
Amount Per Serving
Calories 0
Calories from Fat 0
% Daily Value*
Total Fat 0 grams
0% Daily Value
Saturated Fat 0 grams
0% Daily Value
Trans Fat 0 grams
Cholesterol 0 milligrams
0% Daily Value
Sodium 0 milligrams
0% Daily Value
Total Carbohydrates 0 grams
0% Daily Value
Dietary Fiber 0 grams
0% Daily Value
Sugars 0 grams
Protein 0 grams
0%
Vitamin A
0%
Vitamin C
0%
Calcium
0%
Iron
Percent Daily Values are based on a 2000 calorie diet.
INGREDIENTS: None
Data not available

Example #1

Most basic use of the plugin

$('#test1').nutritionLabel();


Nutrition Facts
Bleu Cheese Dressing
Amount Per Serving
Calories 450
Calories from Fat 430
% Daily Value*
Total Fat 48 grams
74% Daily Value
Saturated Fat 6 grams
30% Daily Value
Trans Fat 0 grams
Cholesterol 30 milligrams
10% Daily Value
Sodium 780 milligrams
33% Daily Value
Total Carbohydrates 3 grams
1% Daily Value
Dietary Fiber 0 grams
0% Daily Value
Sugars 3 grams
Protein 3 grams
0%
Vitamin A
0%
Vitamin C
0%
Calcium
0%
Iron
Percent Daily Values are based on a 2000 calorie diet.
INGREDIENTS: Bleu Cheese Dressing
Data not available

Example #2

Giving specific nutrition label values and hiding some of the parts of the nutrition label

$('#test2').nutritionLabel({
	showServingUnitQuantity : false,
	itemName : 'Bleu Cheese Dressing',
	ingredientList : 'Bleu Cheese Dressing',

	showPolyFat : false,
	showMonoFat : false,

	valueCalories : 450,
	valueFatCalories : 430,
	valueTotalFat : 48,
	valueSatFat : 6,
	valueTransFat : 0,
	valueCholesterol : 30,
	valueSodium : 780,
	valueTotalCarb : 3,
	valueFibers : 0,
	valueSugars : 3,
	valueProteins : 3,
	valueVitaminA : 0,
	valueVitaminC : 0,
	valueCalcium : 0,
	valueIron : 0
});



Nutrition Facts
Serving Size:
DONUTS
Servings Per Container 1
Amount Per Serving
Calories 400
Calories from Fat 220
% Daily Value*
Total Fat 24 grams
37% Daily Value
Saturated Fat 15 grams
75% Daily Value
Cholesterol 25 milligrams
8% Daily Value
Sodium 430 milligrams
18% Daily Value
Total Carbohydrates 44 grams
15% Daily Value
Sugars 24 grams
Protein 4 grams
Percent Daily Values are based on a 2000 calorie diet.
INGREDIENTS: Enriched Bleached Wheat Flour (Bleached Flour, Malted Barley Flour, Niacin, Iron, Thiamin Mononitrate, Riboflavin, Folic Acid), Sugar, Vegetable Oil (contains one or more of the following oils: Cottonseed Oil, Palm Oil, Soybean Oil), Water, Hydrogenated Vegetable Oil (Palm Kernel Oil, Palm Oil), High Fructose Corn Syrup, Cocoa Powder (Processed With Alkali), contains 2% or less of the following: Eggs, Nonfat Milk, Glycerin, Soy Flour, Corn Syrup Solids, Leavening (Sodium Acid Pyrophosphate, Baking Soda, Sodium Aluminum Phosphate), Preservatives (Potassium Sorbate, Sodium Propionate, Calcium Propionate), Salt, Distilled Monoglycerides, Dextrose, Food Starch-Modified (Corn and/or Wheat), Soy, Lecithin, Natural and Artificial Flavor, Mono- and Diglycerides, Spices, Tapioca Starch, Wheat Starch, Cellulose Gum, Guar Gum, Karaya Gum, colored with Extracts of Annatto and Turmeric, Artificial Color.
Data not available

Example #3

Similar to example #2 but with different plugin options. One thing to note is the use of serving size, serving size unit and showing the serving container to overwrite the default value (compare it to other examples to see the difference)

Also, an example where the serving size unit is present and the value serving size is greater than zero and not 'not applicable'

Another thing to note is that the serving unit quantity is not the default value (1.0)

$('#test3').nutritionLabel({
	showItemName : false,
	showServingsPerContainer : true,
	ingredientList : 'Enriched Bleached Wheat Flour (Bleached Flour, Malted Barley Flour, Niacin, Iron, Thiamin Mononitrate, Riboflavin, Folic Acid), Sugar, Vegetable Oil (contains one or more of the following oils: Cottonseed Oil, Palm Oil, Soybean Oil), Water, Hydrogenated Vegetable Oil (Palm Kernel Oil, Palm Oil), High Fructose Corn Syrup, Cocoa Powder (Processed With Alkali), contains 2% or less of the following: Eggs, Nonfat Milk, Glycerin, Soy Flour, Corn Syrup Solids, Leavening (Sodium Acid Pyrophosphate, Baking Soda, Sodium Aluminum Phosphate), Preservatives (Potassium Sorbate, Sodium Propionate, Calcium Propionate), Salt, Distilled Monoglycerides, Dextrose, Food Starch-Modified (Corn and/or Wheat), Soy, Lecithin, Natural and Artificial Flavor, Mono- and Diglycerides, Spices, Tapioca Starch, Wheat Starch, Cellulose Gum, Guar Gum, Karaya Gum, colored with Extracts of Annatto and Turmeric, Artificial Color.',

	showPolyFat : false,
	showMonoFat : false,
	showTransFat : false,
	showFibers : false,
	showVitaminA : false,
	showVitaminC : false,
	showCalcium : false,
	showIron : false,

	valueServingUnitQuantity : 2.3,
	valueServingSize : 6,
	valueServingSizeUnit : 'DONUTS',

	valueCalories : 400,
	valueFatCalories : 220,
	valueTotalFat : 24,
	valueSatFat : 15,
	valueCholesterol : 25,
	valueSodium : 430,
	valueTotalCarb : 44,
	valueSugars : 24,
	valueProteins : 4
});



Nutrition Facts
Fire Grilled Sirloin Tips
Calories 410
% Daily Value*
Total Fat 15 grams
23% Daily Value
Saturated Fat 4.5 grams
23% Daily Value
Cholesterol 105 milligrams
35% Daily Value
Sodium 1220 milligrams
51% Daily Value
Total Carbohydrates 20 grams
7% Daily Value
Dietary Fiber 0 grams
0% Daily Value
Sugars 18 grams
Protein 48 grams
Percent Daily Values are based on a 2000 calorie diet.
INGREDIENTS: Balsamic Vinaigrette, BBQ Hickory, Steak Tips
Data not available

Example #4

Similar to example #2 but with only a few visible values

Another thing to take note here is that the serving size unit is null or an empty string so the textbox appears before the item name

$('#test4').nutritionLabel({
	showServingUnitQuantity : false,
	showAmountPerServing : false,
	showCalorieDiet : true,
	ingredientList : 'Balsamic Vinaigrette, BBQ Hickory, Steak Tips',
	itemName : 'Fire Grilled Sirloin Tips',

	showPolyFat : false,
	showMonoFat : false,
	showTransFat : false,
	showVitaminA : false,
	showVitaminC : false,
	showCalcium : false,
	showIron : false,
	showFatCalories : false,

	valueCalories : 410,
	valueTotalFat : 15,
	valueSatFat : 4.5,
	valueCholesterol : 105,
	valueSodium : 1220,
	valueTotalCarb : 20,
	valueFibers : 0,
	valueSugars : 18,
	valueProteins : 48
});



Nutrition Facts
Bleu Cheese Dressing
Amount Per Serving
Calories 450
Calories from Fat 430
Total Fat 48 grams
Saturated Fat 6 grams
Trans Fat 0 grams
Cholesterol 30 milligrams
Sodium 780 milligrams
Total Carbohydrates 3 grams
Dietary Fiber 0 grams
Sugars 3 grams
Protein 3 grams
INGREDIENTS: Bleu Cheese Dressing
Data not available

Example #5

Similar to Example #2 but the Percent Daily Values are Hidden

$('#test5').nutritionLabel({
	hidePercentDailyValues : true,
	showServingUnitQuantity : false,
	itemName : 'Bleu Cheese Dressing',
	ingredientList : 'Bleu Cheese Dressing',

	showPolyFat : false,
	showMonoFat : false,

	valueCalories : 450,
	valueFatCalories : 430,
	valueTotalFat : 48,
	valueSatFat : 6,
	valueTransFat : 0,
	valueCholesterol : 30,
	valueSodium : 780,
	valueTotalCarb : 3,
	valueFibers : 0,
	valueSugars : 3,
	valueProteins : 3,
	valueVitaminA : 0,
	valueVitaminC : 0,
	valueCalcium : 0,
	valueIron : 0
});



Nutrition Facts
Bleu Cheese Dressing
Amount Per Serving
Calories 450
Calories from Fat 430
% Daily Value*
Total Fat 48 grams
Saturated Fat 6 grams
30% Daily Value
Trans Fat 0 grams
Cholesterol 30 milligrams
10% Daily Value
Sodium 780 milligrams
Total Carbohydrates 3 grams
1% Daily Value
Dietary Fiber 0 grams
Sugars 3 grams
Protein 3 grams
0%
Vitamin A
0%
Vitamin C
0%
Calcium
0%
Iron
Percent Daily Values are based on a 2000 calorie diet.
INGREDIENTS: Bleu Cheese Dressing
Data not available

Example #6

Similar to Example #2 but only specific Percent Daily Values are Hidden

$('#test6').nutritionLabel({
	showDailyTotalFat : false,
	showDailySodium : false,
	showDailyFibers : false,

	showServingUnitQuantity : false,
	itemName : 'Bleu Cheese Dressing',
	ingredientList : 'Bleu Cheese Dressing',

	showPolyFat : false,
	showMonoFat : false,

	valueCalories : 450,
	valueFatCalories : 430,
	valueTotalFat : 48,
	valueSatFat : 6,
	valueTransFat : 0,
	valueCholesterol : 30,
	valueSodium : 780,
	valueTotalCarb : 3,
	valueFibers : 0,
	valueSugars : 3,
	valueProteins : 3,
	valueVitaminA : 0,
	valueVitaminC : 0,
	valueCalcium : 0,
	valueIron : 0
});