I have a javascript in my page which requires a string list in this format:
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
My model in the view contains a list of string named blogtags.
How do I add the list in the viewmodel to the javascript.
Thanks
Arnab
I would add a string type to hold a comma seperated tags to my viewmodel
In my controll, I will set the value of this from the List of string
And in the View