Is it possible to do something like this:
@{var list = [1,2,3,4,5]; }
It doesn't throw me an error but then when I want to use that variable in Jquery, it doesn't appear.
What is the correct way to do it?
Is it possible to do something like this:
@{var list = [1,2,3,4,5]; }
It doesn't throw me an error but then when I want to use that variable in Jquery, it doesn't appear.
What is the correct way to do it?
It is possible by iterating the list in the javascript array