I wrote a javascript function in which new row gets added in the table. For static data it is working fine, how to place Razor tags inside those javascript var
var count = "1";
var strHtml1 ="@Html.CheckBoxFor(x => x[count].isChecked)";
count++;
This line doesn't seem to work. How should I place the razor code inside the var and also the count [var] inside that razor code.