In my code(MVC5 appilcation) I've the following code which is working when the JS file is inside the index view file,when I take the java script and put it in file inside scripts and run the program I see this '@Html.TextBox("user")' in the page,how should I adopt the code to work also from scripts that are not inside the index.
var td = $emptyRow.children().first();
td.empty();
td.append('@Html.TextBox("user")');