I am attempting to invoke a JavaScript function from within a helper method in Razor. Here is a snippet of my code:
@helper MyMethod()
{
for (int i = 0; i < 5; i++)
{
drawMe(i)
}
}
The drawMe function is defined in an external js file that has been correctly included. I have experimented with enclosing it in script tags and using Html.Raw, but so far nothing has proven successful. Any assistance would be greatly appreciated.
Thank you