formatList - How to return the original HTML value?

Rich Massa's Avatar

Rich Massa

22 Apr, 2011 08:18 PM

How can I return the original element back so the results that are displayed actually have the value as it works out of the box?

formatList: function(data, elem){

return elem; //???? elem.html doesn't work nor does elem.html()


Thank you for your time.

  1. 1 Posted by Rich Massa on 22 Apr, 2011 08:27 PM

    Rich Massa's Avatar

    Nevermind, figured it out! Hope this helps others!

    var new_elem = elem.html(data.label);

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


? 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