In my MVC application i created the view Index.cshtml and there i declared the C# variable..
Eg: string selectedvalue="";
now how to use it in the javascript function code which i wrote with in this Index.cshtml, so that i can append some text to this string in javascript function?
string selectedvalue=""; // Coding Part function onchangeFT(e) { '@selectedvalue'= e.value; //e.value come form combobox and it is should be assigned to "selectedvalue" alert('@selectedvalue'); }It is giving me error...
any idea to solve this issue?