I am calling a .js file within a HTML file. On the URL to the .js file I want to include a parameter that will be accessable to the code INSIDE the .js file.
For exa
cshtml file
@using (Html.BeginForm("Create", "Coverage")) { }
Coverage.js
var getTypeIDByCategoryIdUrl = ""; $(function () { $('#SeletedParrentIDTypeCode').change(function () { alert(getTypeIDByCategoryIdUrl); }