select - jEditable: Display Option Text (and not Value) after submit -


i'm using jeditable on select list. works beautifully, except following issue. jeditable displays in place whatever server posts after submit. works great text boxes etc. can post submitted value server.

however, makes no sense on select lists because value posted id of option element. if post back, text changes id instead of friendly text there before.

how can turn behavior off? don't want have fetch text value using submitted id from db again post display purposes. there should way retain option text , have jeditable put in label after submission. help?

just add callback in editable configuration object, this:

callback: function (value, settings) {        $(this).html(settings.data[value]);  } 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -