diff --git a/selectpage.js b/selectpage.js index 053b3df..06b067b 100644 --- a/selectpage.js +++ b/selectpage.js @@ -821,6 +821,11 @@ self.prop.init_set = false; }else{ var row = data[0]; + $.each(data,function (i,rows) { + if(rows[p.keyField]==p.value){ + row=data[i]; + } + }) self.elem.combo_input.val(getText(row)); self.elem.hidden.val(row[p.keyField]); self.prop.prev_value = getText(row); @@ -2257,4 +2262,4 @@ $.fn.selectPage = old; return this; }; -})(window.jQuery); \ No newline at end of file +})(window.jQuery);