Hey guys!!!! Help me please!!!!!!!

kumarkratigupta's Avatar

kumarkratigupta

16 Feb, 2012 06:01 AM

I want to add extra data in the input area. Actually I am having a checkbox, when the user clicks on that checkbox I want to display that data into the auto suggest input field...
Is that possible, if yes please help me!!

  1. 1 Posted by Jon on 16 Feb, 2012 03:14 PM

    Jon's Avatar

    Hi,

    Take a look at this thread: Add item.

    Here you have the .js file I'm using. You just have to trigger the 'add_item_extra' function:
    var dato = [ { value: 15, name: John Doe} ]; $("#destinatarios").trigger("add_item_extra", dato);

    Where destinatarios is the id of the Autosuggest input.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

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.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac