wuyuntao / jquery-autosuggest

A fork of AutoSuggest jQuery plugin writtern by Drew Wilson.
http://github.com/wuyuntao/jquery-autosuggest
118 stars 59 forks source link

Create new callback: beforeSelectionAdd #34

Open mimhof1 opened 10 years ago

mimhof1 commented 10 years ago

A callback that is run when a selection is made by choosing one from the results dropdown or by using the tab/comma keys to add one and fires before afterSelectionAdd. It returns false or element or altered element. If false, element is not added. Example would be to run selected element against filters, for example, check if valid email.