How to add two values to the item element

carlos's Avatar

carlos

23 Nov, 2011 09:06 AM

Hello abd thanks for this beautiful plugin.
I have a list that displays languages with their levels, i used this function

formatList: function(data,elem){
            var level = data.level, language = data.value;
            var new_elem = elem.html( language+" - "  +level);
            return new_elem;
        }

I want to know how to add the level to the selected item e.g. English - Beginner instead of just English in the box, how can i achieve this?
Thanks in advance

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