EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: volodias on September 12, 2013, 02:12:54 AM



Title: easyui-searchbox with menu returns not name, but description
Post by: volodias on September 12, 2013, 02:12:54 AM
Hello!
There is a small problem or misunderstanding. I have the next:
Code:
<input class="easyui-searchbox" data-options="searcher:orgSearch,prompt:'Input value',menu:'#org-sm'"></input>
<div id="org-sm" style="width:120px">
<div data-options="name:'all',iconCls:'icon-ok'">All organizations</div>
<div data-options="name:'sts'">Participants</div>
</div>
...
function orgSearch(value,name){
alert('You input: ' + value+'('+name+')');
}
...

Alert returns my input value + the description: All organizations or Participants, but in the demo the same alert returns ALL or STS.
I need namely ALL or STS and not the description.

The question is how to get ALL or STS?

Thanks in advance.


Title: Re: easyui-searchbox with menu returns not name, but description
Post by: stworthy on September 12, 2013, 04:08:32 AM
To solve this issue, download the updated searchbox plugin from http://www.jeasyui.com/easyui/plugins/jquery.searchbox.js and include to the page.