Following is the code snippets taken from
http://pietschsoft.com/post/2011/09/09/Tag-Editor-Field-using-jQuery-similar-to-StackOverflow.aspx
// pre-selected tags
values: [
'javascript',
'css',
'jquery'];
I want to assign values with some hidden field or C# variable, please help as I don’t have expertise with JavaScript/jQuery.
You can create a public property and use it in your HTML like the following…
C# (Added per/comments)
JavaScript
NOTE: I put single quotes around the values since JavaScript requires the them to recognize the value as part of a string array ( Valid = [‘value’,’value’] / Invalid = [value,value] ).