title: How to get Data from Model to JavaScript MVC 4?
body: <p><strong>that's my function:</strong></p>
  
  <pre><code> &lt;script&gt; function Calculate()
       {
           var ItemPrice = document.getElementById("price");
           var weight = document.getElementById("weight");
           var SelWeight = weight.options[weight.selectedIndex].value;
           alert(SelWeight);
           var Category = document.getElementById("SelectedCategory");
           var SelCategory = Category.options[Category.selectedIndex].value;
           alert(SelCategory);
  
       }
      &lt;/script&gt;
  </code></pre>
  
  <p>i want to get <code>SelCategories.Tax</code> and <code>SelCategories.Duty</code> to add them to weight value and total price to show the total in a label.. I'm using <strong>ASP.NET MVC 4</strong> and this is my Model that i want to  use </p>
  
  <pre><code>public class CategoriesModel
      {
          public int CategoryID { get; set; }
          public string CategoryName { get; set; }
          public decimal Duty { get; set; }
          public decimal Tax { get; set; }
          public IEnumerable&lt;SelectListItem&gt; CategoriesList { get; set; }
      }
  </code></pre>