Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8795263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:21:49+00:00 2026-06-13T23:21:49+00:00

I am using jQuery autocomplete with MVC3 and Razor engine and it is able

  • 0

I am using jQuery autocomplete with MVC3 and Razor engine and it is able to retrieve my list from my actionResult. However when I click on an item in the autocomplete list there is always a comma at the end.

HTML

<div class="editor-field">
    @Html.EditorFor(model => Model.group_name, new { ID = "group_name" })
    @Html.ValidationMessageFor(model => Model.group_name)
</div>

JS

<script type="text/javascript">
    $(document).ready(function () {
        $("#group_name").autocomplete('@Url.Action("LookUpGroupName")', // Call LookUpGroupName ActionResult in UserManager Controller
        {
        dataType: 'json',
        parse: function (data) {
            var rows = new Array();
            for (var i = 0; i < data.length; i++) {
                rows[i] = {
                    data: data[i],
                    value: data[i].group,
                    result: data[i].group
                }
            }
            return rows;
        },
        formatItem: function (row, i, max) {
            return row.group
        },
        width: 300,
        highlight: false,
        multiple: true
        //        multipleseparator: ","
    }); // End of autocomplete
});
</script>

Response body of my request from typing the letter a

[{"group":"A Tout France"},{"group":"Abba Blinds"},{"group":"Aberdeen Journals"},{"group":"Account suspended South West Media Group"},{"group":"Acumen Marketing Communications"},{"group":"Acumen Partners"},{"group":"adz media ltd"},{"group":"Aka Ltd"},{"group":"AL Marketing Communications"},{"group":"Alchemy Direct Media"}]

If I select A Tout France from using my autocomplete the value in the textbox will be:

A Tout France,

Any idea how to get rid of the trailing comma?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T23:21:50+00:00Added an answer on June 13, 2026 at 11:21 pm
    multiple: true 
    

    Adds a comma for every item selected which isn’t explained anywhere in the documentation. Hopefully this saves someone hours of time wasting.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Jquery's autocomplete to retrieve a list of options from the mysql
I'm using jQuery autocomplete plugin from jQuery website calling the controller url which return
I am using jquery.autocomplete.js and jquery.apitags to select a few elements from a div
I'm using 'rails3-jquery-autocomplete' gem, but it doesn't have multi column search, but there is
I'm using jQuery autocomplete which makes a UL with items like: <li class=ui-menu-item role=menuitem>
I am using Jquery autocomplete in my form. After selecting the value from autocomplete,
Hi I am using jquery autocomplete from this webpage http://www.devbridge.com/projects/autocomplete/jquery/ the usage is pretty
I am using jQuery autocomplete from here : http://www.pengoworks.com/workshop/jquery/autocomplete.htm $(#TestTextbox).autocomplete( '<%= Url.Action(LookupAction) %>', {
I'm using jQuery Autocomplete control. Upon selecting an item, a grid is shown under
I am using jQuery autocomplete , as follows: From my PHP file, I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.