or Create a profile
AutoSuggest jQuery Plugin →
25 Mar, 2010 08:24 AM
I think it also would be a nice feature having a callback
function where you can check if the token is valid before adding it
to the token list.
on 25 Mar, 2010 04:13 PM
Use the "beforeRetrieve()" function to do that.
on 26 Mar, 2010 11:56 AM
But beforeRetrive() is called after every single key you
What i want to do is to check if the token is correct (f.i.
e-mail address) after the user has finally entered it.
on 26 Mar, 2010 04:57 PM
Use the "selectionAdded()" callback. It will do what you need. It
passes you the element object once it has been added to the list.
so you can the text if you need to.
on 29 Mar, 2010 07:02 AM
I was using that function to check the tokens.
If the element is wrong I just showed an alert and deleted the
element but... Is there any way to let the user edit the token
instead of deleting?
on 29 Mar, 2010 07:10 AM
I am not sure what your use-case is, but are you doing some sort of
on 29 Mar, 2010 07:37 AM
I'm using your plugin to enter email addresses. In this scenario
I'd like to check that the tokens inserted by the user are well
Using selectionAdded is what I'm doing now but If the user has a
mistake in the e-mail I remove the whole element instead of letting
them edit it.
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the Drew Wilson staff to resolve this discussion.
This discussion is private.
Only you and Drew Wilson support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.