EasyUI Forum
April 24, 2024, 07:05:50 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: easyui-searchbox with menu returns not name, but description  (Read 6836 times)
volodias
Newbie
*
Posts: 8


View Profile
« 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!