Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving documentation #77

Open
cacique-coder opened this issue Feb 27, 2015 · 0 comments
Open

Improving documentation #77

cacique-coder opened this issue Feb 27, 2015 · 0 comments

Comments

@cacique-coder
Copy link

Hi good day, I want contribute with this

I needed, search a item by a property ( in backend) and show the name of the item with this property

I.E:

  • Search: C++
  • response: [{name: "My name to show, ability: "java, C++" }]
    In the documentacion, i don't find it so... i want contribute with this
$('.chosen-ajax').ajaxChosen({
    type: "GET",
    url: "my_path",
    dataType: 'json'
  }, function(data){
     var result = [];    
     for (var i = data.length - 1; i >= 0; i--) {
      var value = data[i];
      /* Only need add search_text with the property */
      result.push({"value" : value.id, "search_text" : value.property  ,text: value.name})
     }
     return result;
   }
)

The important Thing is: search_text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant