Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to save data using multiple tags.I have string data type field called Challenge Name. When im going to save data i can able to save multiple challenge names(tags). now i just only have autocomplete text field. Here is my code

$(document).ready(function () {
var availableTags = [];
@foreach(var val in Model.AllChallenges)
{
<text>
availableTags.push('@val.Value');

}
$("#selectedCategory").autocomplete({
source: availableTags
});
});
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900