How to fire a function before and after automatically in a jquery plugin?

Is there a Quora-like auto-suggest jQuery plugin?

  • This is a follow-up question to . Most auto-suggest implementations are built with a Facebook contact-adder-like functionality in mind. I'm looking for something closer to Quora's. Mainly, this means that the input box should still function as a regular text input in addition to being taggable. Bonus for these features: Can limit number of included tags Can require a trigger character (ex: @) for the tagging Can require tags to be inserted in a specific place (ex: at the beginning of the input)

  • Answer:

    I would recommend the Tag plugin from Simplicity Engineer: http://simplicityengineer.com/tag/. Another good alternative is Tags Input from xoxco: https://github.com/xoxco/jQuery-Tags-Input. Both are pretty easy and straight forward to use.

James Lau at Quora Visit the source

Was this solution helpful to you?

Other answers

I would suggest the TypeAhead plugin from twitter for all your needs https://github.com/twitter/typeahead.js For other autosuggest jquery plugins look at this page http://jquer.in/?s=suggest

Jay Kanakiya

Querybox looks neat. http://marumushi.com/news/querybox You'll have to modify it to add your features but it seems like a good start.

Abi Raja

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.