0

I am using jQuery tokeninput plugin in my Razor MVC5 view and it is working fine for searching data from database but I am facing one issue.

@Html.TextBoxFor(model => model.code, new { id = "diag", @class = "diag " })

and tokeninput is attached to the class "diag" as

$(".diag").tokenInput("@Url.Action("Search", "approval")");

so it is working fine for all the input having class diag. But if you select the value searched it automatically create another texbox in next line. I searched a lot for a solution.

Has anyone come across an issue like this? Please help me to solve this.

Thanks in Advance

2
  • can you put action code? or sample ? Commented Apr 16, 2015 at 10:34
  • Hi problem solved. I added them as facebook.css and given token limit as 1 now Commented Apr 16, 2015 at 10:47

1 Answer 1

1

I think this is css related issue.you need to use the tokeninput css.

<link href="your path/token-input.css" rel="Stylesheet" type="text/css" />
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.