I have a function in asp.net mvc , in razor template .
I want to naming my function dynamically . but how can I do this ?
this is my function :
function ipro-@count() {
numpro-@count = numpro-@count + 1;
document.getElementById("numpro-@count").innerHTML = numpro-@count;
}
count is a dynamic number . it does not work for function name . how can I fix it ?
What happens if you do this, need to add the parens around the variable name